We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18382
    • 5 Posts
    Hi,
    Is it possible to remove that a user is blocked after 3 failed attempts to log in? (WebLogin snippet)
    (I use the login only to avoid web crawlers)
    Thanks!
      • 10487 MODX Staff
      • 1,535 Posts
      Two ways you can do it ... up to you which you choose.

      1. Increase the ’Failed Login Attempts’ number to a stupidly large number in the Manager configuration settings (under the ’User’ tab).

      2. Comment out the code that generates the warning in the weblogin.processor.inc.php (found in assets/snippets/weblogin/) - look for the following lines:
          if($failedlogins>=$modx->config['failed_login_attempts'] && $blockeduntildate>time()) {    // blocked due to number of login errors.
              session_destroy();
              session_unset();
              $output = webLoginAlert("Due to too many failed logins, you have been blocked!");
              return;
          }
      


      Hope that helps,
      Garry
        Garry Nutting
        Senior Developer
        MODX, LLC

        Email: [email protected]
        Twitter: @garryn
        Web: modx.com
        • 18382
        • 5 Posts
        Thanks Garry, that helps a lot!