Opp, add this bit back
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 26 Nov 2008 03:41:28 +0000 (03:41 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 26 Nov 2008 03:41:28 +0000 (03:41 +0000)
includes/specials/SpecialResetpass.php

index 05889c8..0576968 100644 (file)
@@ -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' ) );
                }