Permalink
Browse files

Merge pull request #27676 from imujjwal96/issue27440

Disable reset password link. Issue: #27440
  • Loading branch information...
PVince81 committed May 4, 2017
2 parents 7ceef9c + b317127 commit b0e46fa72449db4c8a733305c94d1ad82a475a57
Showing with 3 additions and 0 deletions.
  1. +1 −0 config/config.sample.php
  2. +2 −0 core/Controller/LoginController.php
View
@@ -243,6 +243,7 @@
* read-only user backend like LDAP), you can specify a custom link, where the
* user is redirected to, when clicking the "reset password" link after a failed
* login-attempt.
* In case you do not want to provide any link, replace the url with 'disabled'
*/
'lost_password_link' => 'https://example.org/link/to/password/reset',
@@ -144,6 +144,8 @@ public function showLoginForm($user, $redirect_url, $remember_login) {
$parameters['canResetPassword'] = $userObj->canChangePassword();
}
}
} elseif ($parameters['resetPasswordLink'] === 'disabled') {
$parameters['canResetPassword'] = false;
}
$parameters['alt_login'] = OC_App::getAlternativeLogIns();

0 comments on commit b0e46fa

Please sign in to comment.