We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21521
    • 7 Posts
    i found my few 0.9.6.3 setups don’t block users on failed login count to the manager section. after some investigation i found my failedlogin counter always 0.

    it’s because of line 213 in login.processor.php
    if(!isset($_SESSION['mgrValidated'])) {
        $sql = "update $dbase.`".$table_prefix."user_attributes` SET failedlogincount=0, logincount=logincount+1, lastlogin=thislogin, thislogin=".time().", sessionid='$currentsessionid' where internalKey=$internalKey";
        $rs = mysql_query($sql);
    }
    


    the idea was to reset failedlogincount and increment counters after _successfull_ manager login, but here is the opposite (!isset..) situation, please, fix that in next release (just remove ! is enough ;-)
      • 25663 MODX Staff
      • 12,272 Posts
      Good catch nikk. Please file this in Jira as a bug report so it doesn’t get lost. It will be addressed in the next release (Evo 1.0!). See the link at the top of the forums. Thanks!
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me