Index: trunk/phase3/includes/specials/SpecialChangePassword.php |
— | — | @@ -215,6 +215,11 @@ |
216 | 216 | throw new PasswordError( wfMsg( 'badretype' ) ); |
217 | 217 | } |
218 | 218 | |
| 219 | + $throttleCount = LoginForm::incLoginThrottle( $this->mUserName ); |
| 220 | + if ( $throttleCount === true ) { |
| 221 | + throw new PasswordError( wfMsg( 'login-throttled' ) ); |
| 222 | + } |
| 223 | + |
219 | 224 | if( !$user->checkTemporaryPassword($this->mOldpass) && !$user->checkPassword($this->mOldpass) ) { |
220 | 225 | wfRunHooks( 'PrefsPasswordAudit', array( $user, $newpass, 'wrongpassword' ) ); |
221 | 226 | throw new PasswordError( wfMsg( 'resetpass-wrong-oldpass' ) ); |