r44813 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44812‎ | r44813 | r44814 >
Date:22:29, 19 December 2008
Author:skizzerz
Status:ok
Tags:
Comment:
* Fix fatal error due to missing method when User::isValidPassword returns false
Modified paths:
  • /trunk/phase3/includes/specials/SpecialResetpass.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialResetpass.php
@@ -177,7 +177,7 @@
178178 $this->mNewpass = $this->mOldpass = $this->mRetypePass = '';
179179 } catch( PasswordError $e ) {
180180 wfRunHooks( 'PrefsPasswordAudit', array( $user, $newpass, 'error' ) );
181 - $this->mainPrefsForm( 'error', $e->getMessage() );
 181+ throw new PasswordError( $e->getMessage() );
182182 return;
183183 }
184184

Status & tagging log