r43972 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43971‎ | r43972 | r43973 >
Date:03:41, 26 November 2008
Author:aaron
Status:ok
Tags:
Comment:
Opp, add this bit back
Modified paths:
  • /trunk/phase3/includes/specials/SpecialResetpass.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialResetpass.php
@@ -167,7 +167,7 @@
168168 throw new PasswordError( wfMsg( 'badretype' ) );
169169 }
170170
171 - if( !$user->checkPassword( $this->mOldpass ) ) {
 171+ if( !$user->checkTemporaryPassword($this->mOldpass) && !$user->checkPassword($this->mOldpass) ) {
172172 wfRunHooks( 'PrefsPasswordAudit', array( $user, $newpass, 'wrongpassword' ) );
173173 throw new PasswordError( wfMsg( 'resetpass-wrong-oldpass' ) );
174174 }

Status & tagging log