We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15219
    • 16 Posts
    Oh yeah, and for a few more spots to change (the downfall of this approach) -

    change your login.html style forms to show with the adjust code as well. Just thought I’d sniff out the changes for ya.
      • 22303 MODX Staff
      • 10,725 Posts
      This looks better indeed. But when is the "Best Veriword Captcha Display" add-on coming out? I’m waiting for that one!

      j/k tongue laugh
        • 15219
        • 16 Posts
        Here’s something odd in weblogin.processor.php:

        ...
        if(isset($modx->config['use_captcha']) && $modx->config['use_captcha']==1) {
                if($_SESSION['veriword']!=$captcha_code) {
                    $output = webLoginAlert("The security code you entered didn't validate! Please try to login again!");
                    $newloginerror = 1;
                }
            }
        ...


        I had to comment this out in the latest version or my login on the side didn’t seem to work, as it tried verify the captcha (that didn’t exist)?
          • 3749
          • 24,544 Posts
          Just a note: CAPTCHA is now an optional plugin for MODx Revolution. Both the option to use a math equation for the image and the selection of CAPTCHA words can be set in System Settings in the Manager. The captcha.php file in /assets/captcha can also be used directly as an image src by other add-ons that want a captcha image. They can check the user’s input against the $_SESSION variable set by the VeriWord class through captcha.php.

          Because it’s no longer part of the core, you can also feel free to rewrite captcha.php, veriword.class.php, mathstring.class.php, and/or the plugin to do what you want without them being overwritten when you upgrade MODx.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 32393
            • 29 Posts
            I installed this better captcha display, logged out, and attempted to log back in... after three attempts, I got locked out of my admin account. I must not of had something in the code set up correctly I guess. Or maybe this doesn’t work with newer versions of modx? Anyone have any ideas why this captcha system won’t work for me, but the captcha system that comes with modx does work? I’m just going to go back to the original captcha display. I ended up having to go into my database and reset some things in order to get back into my account.
              • 18913
              • 654 Posts
              I don’t know anything about this particular implementation. But you’ll find that Recaptcha has been enabled and that Bob Ray has I think an improved veriword captcha in SPform. (I got Recaptcha implemented in both eform and spform, fwiw).
              Matt
                • 3749
                • 24,544 Posts
                Quote from: wilcosky at Dec 06, 2009, 06:22 AM

                I installed this better captcha display, logged out, and attempted to log back in... after three attempts, I got locked out of my admin account. I must not of had something in the code set up correctly I guess. Or maybe this doesn’t work with newer versions of modx? Anyone have any ideas why this captcha system won’t work for me, but the captcha system that comes with modx does work? I’m just going to go back to the original captcha display. I ended up having to go into my database and reset some things in order to get back into my account.

                Most likely what you did wrong was a mismatch between the name of the session variable that is saved when the CAPTCHA image is created and the one that’s checked by the validation code.
                  Did I help you? Buy me a beer
                  Get my Book: MODX:The Official Guide
                  MODX info for everyone: http://bobsguides.com/modx.html
                  My MODX Extras
                  Bob's Guides is now hosted at A2 MODX Hosting
                  • 13481
                  • 97 Posts
                  Quote from: wilcosky at Dec 06, 2009, 06:22 AM

                  I installed this better captcha display, logged out, and attempted to log back in... after three attempts, I got locked out of my admin account. I must not of had something in the code set up correctly I guess. Or maybe this doesn’t work with newer versions of modx? Anyone have any ideas why this captcha system won’t work for me, but the captcha system that comes with modx does work? I’m just going to go back to the original captcha display. I ended up having to go into my database and reset some things in order to get back into my account.

                  What version of MODx are you running? It’s been tested to work up to 0.9.3 and I don’t know about the 1.0 versions yet.

                  James
                    • 32393
                    • 29 Posts
                    I’m using 1.0.2 so that’s probably the issue.