Index: trunk/phase3/includes/specials/SpecialResetpass.php |
— | — | @@ -167,7 +167,7 @@ |
168 | 168 | throw new PasswordError( wfMsg( 'badretype' ) ); |
169 | 169 | } |
170 | 170 | |
171 | | - if( !$user->checkPassword( $this->mOldpass ) ) { |
| 171 | + if( !$user->checkTemporaryPassword($this->mOldpass) && !$user->checkPassword($this->mOldpass) ) { |
172 | 172 | wfRunHooks( 'PrefsPasswordAudit', array( $user, $newpass, 'wrongpassword' ) ); |
173 | 173 | throw new PasswordError( wfMsg( 'resetpass-wrong-oldpass' ) ); |
174 | 174 | } |