Index: trunk/phase3/includes/specials/SpecialChangePassword.php |
— | — | @@ -225,6 +225,11 @@ |
226 | 226 | throw new PasswordError( wfMsg( 'resetpass-wrong-oldpass' ) ); |
227 | 227 | } |
228 | 228 | |
| 229 | + // Please reset throttle for successful logins, thanks! |
| 230 | + if ( $throttleCount ) { |
| 231 | + LoginForm::clearLoginThrottle( $this->mUserName ); |
| 232 | + } |
| 233 | + |
229 | 234 | try { |
230 | 235 | $user->setPassword( $this->mNewpass ); |
231 | 236 | wfRunHooks( 'PrefsPasswordAudit', array( $user, $newpass, 'success' ) ); |