From 182117acd83dd67ea1b2c4591444ee927a1c2367 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 26 Nov 2008 03:41:28 +0000 Subject: [PATCH] Opp, add this bit back --- includes/specials/SpecialResetpass.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialResetpass.php b/includes/specials/SpecialResetpass.php index 05889c80ab..05769681fc 100644 --- a/includes/specials/SpecialResetpass.php +++ b/includes/specials/SpecialResetpass.php @@ -167,7 +167,7 @@ class PasswordReset extends SpecialPage { throw new PasswordError( wfMsg( 'badretype' ) ); } - if( !$user->checkPassword( $this->mOldpass ) ) { + if( !$user->checkTemporaryPassword($this->mOldpass) && !$user->checkPassword($this->mOldpass) ) { wfRunHooks( 'PrefsPasswordAudit', array( $user, $newpass, 'wrongpassword' ) ); throw new PasswordError( wfMsg( 'resetpass-wrong-oldpass' ) ); } -- 2.20.1