Password reset link is shown when no reset options are available
authorHuji Lee <huji.huji@gmail.com>
Mon, 3 Oct 2016 18:34:50 +0000 (14:34 -0400)
committerHuji Lee <huji.huji@gmail.com>
Mon, 3 Oct 2016 18:34:50 +0000 (14:34 -0400)
Bug: T144705
Change-Id: I7d6b563e32039e7313121de9629f02ad4f02d351

includes/specialpage/LoginSignupSpecialPage.php

index bf83e7b..275e121 100644 (file)
@@ -1070,7 +1070,7 @@ abstract class LoginSignupSpecialPage extends AuthManagerSpecialPage {
                }
                if ( !$this->isSignup() && $this->showExtraInformation() ) {
                        $passwordReset = new PasswordReset( $this->getConfig(), AuthManager::singleton() );
-                       if ( $passwordReset->isAllowed( $this->getUser() ) ) {
+                       if ( $passwordReset->isAllowed( $this->getUser() )->isGood() ) {
                                $fieldDefinitions['passwordReset'] = [
                                        'type' => 'info',
                                        'raw' => true,