From: Aaron Schulz Date: Fri, 22 Jul 2011 22:42:29 +0000 (+0000) Subject: Follow-up r92887: clear throttle count once the password is accepted as normal X-Git-Tag: 1.31.0-rc.0~28677 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=5c58df6423dec349760bf43f7418754f04495b43;p=lhc%2Fweb%2Fwiklou.git Follow-up r92887: clear throttle count once the password is accepted as normal --- diff --git a/includes/specials/SpecialChangePassword.php b/includes/specials/SpecialChangePassword.php index 3abfa023e6..ab5aad180c 100644 --- a/includes/specials/SpecialChangePassword.php +++ b/includes/specials/SpecialChangePassword.php @@ -225,6 +225,11 @@ class SpecialChangePassword extends SpecialPage { throw new PasswordError( wfMsg( 'resetpass-wrong-oldpass' ) ); } + // Please reset throttle for successful logins, thanks! + if ( $throttleCount ) { + LoginForm::clearLoginThrottle( $this->mUserName ); + } + try { $user->setPassword( $this->mNewpass ); wfRunHooks( 'PrefsPasswordAudit', array( $user, $newpass, 'success' ) );