Index: trunk/phase3/includes/specials/SpecialChangeEmail.php |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | * |
28 | 28 | * @ingroup SpecialPage |
29 | 29 | */ |
30 | | -class SpecialChangeEmail extends SpecialPage { |
| 30 | +class SpecialChangeEmail extends UnlistedSpecialPage { |
31 | 31 | public function __construct() { |
32 | 32 | parent::__construct( 'ChangeEmail' ); |
33 | 33 | } |
— | — | @@ -180,7 +180,7 @@ |
181 | 181 | return false; |
182 | 182 | } |
183 | 183 | |
184 | | - if ( !$user->checkPassword( $pass ) ) { |
| 184 | + if ( !$user->checkTemporaryPassword( $pass ) && !$user->checkPassword( $pass ) ) { |
185 | 185 | $this->error( wfMsgHtml( 'wrongpassword' ) ); |
186 | 186 | return false; |
187 | 187 | } |
Index: trunk/phase3/includes/specials/SpecialChangePassword.php |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | * |
28 | 28 | * @ingroup SpecialPage |
29 | 29 | */ |
30 | | -class SpecialChangePassword extends SpecialPage { |
| 30 | +class SpecialChangePassword extends UnlistedSpecialPage { |
31 | 31 | public function __construct() { |
32 | 32 | parent::__construct( 'ChangePassword' ); |
33 | 33 | } |