From: <gem...@li...> - 2011-11-17 08:45:59
|
Revision: 226 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=226&view=rev Author: mennodekker Date: 2011-11-17 08:45:52 +0000 (Thu, 17 Nov 2011) Log Message: ----------- No extra delay when auth fails because of delay Modified Paths: -------------- trunk/library/classes/Gems/Auth.php Modified: trunk/library/classes/Gems/Auth.php =================================================================== --- trunk/library/classes/Gems/Auth.php 2011-11-17 08:17:30 UTC (rev 225) +++ trunk/library/classes/Gems/Auth.php 2011-11-17 08:45:52 UTC (rev 226) @@ -152,11 +152,12 @@ } else { if ($values['gula_failed_logins']) { // MUtil_Echo::track($result->getCode(), self::ERROR_PASSWORD_DELAY); - // Only increment when we have no password delay - // if ($result->getCode() <> self::ERROR_PASSWORD_DELAY) { + // Only increment when we have no password delay as the right password + // will not be accepted when we are in the delay. + if ($result->getCode() <> self::ERROR_PASSWORD_DELAY) { $values['gula_failed_logins'] += 1; $values['gula_last_failed'] = new Zend_Db_Expr('CURRENT_TIMESTAMP'); - // } + } } else { $values['gula_failed_logins'] = 1; $values['gula_last_failed'] = new Zend_Db_Expr('CURRENT_TIMESTAMP'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |