From 5c58df6423dec349760bf43f7418754f04495b43 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 22 Jul 2011 22:42:29 +0000 Subject: [PATCH] Follow-up r92887: clear throttle count once the password is accepted as normal --- includes/specials/SpecialChangePassword.php | 5 +++++ 1 file changed, 5 insertions(+) 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' ) ); -- 2.20.1