We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14779
    • 256 Posts
    I have a page with this call:
    [[WebLogin]]

    The page is not cached.

    When someone inputs a user/pass I get a popup dialog " The Security Code you entered does not Validate". This would be an error in the CAPTCHA code, but I am not displaying CAPTCHA. If I click <OK>, I get the login for again. THEN if I refresh the page, I get the notification about sending POST data, click <OK>, and Voila! I am logged in. How do I fix this so it just logs you in correctly?
    I am actually having this trouble on two of my sites. here is a link to one:

    http://throughmylensphotography.com/login_page.html
    username: modxtest
    password: modxtest
      PM me to find out how you can get a FREE ipad 2!
      • 14796
      • 59 Posts
      Hey Josh,

      Were you able to figure this error out? I have the same error since I upgraded to .95. I logged onto your site but didn’t get the error so I thought you may have found a solution.
        • 14796
        • 59 Posts
        I think I actually got it to work correctly if you are still having this problem.

        Just comment out lines 303-308 in the weblogin.processor.inc.php page:

        // if(isset($use_captcha) && $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;
        // }
        // }
          • 25663 MODX Staff
          • 12,272 Posts
          As weird as it sounds, the current caching system can be odd sometimes, so try to call the snippet uncached too.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 14779
            • 256 Posts
            Thanks Joshywood and Ryan!
            I commented out the code AND called the snippet uncached, and it seems to work.
              PM me to find out how you can get a FREE ipad 2!