Skip to content
Snippets Groups Projects
Unverified Commit 7c23414e authored by Ujjwal Bhardwaj's avatar Ujjwal Bhardwaj Committed by Joas Schilling
Browse files

Disable reset password link. Issue: #27440

parent 241226c2
No related branches found
No related tags found
No related merge requests found
...@@ -253,6 +253,7 @@ $CONFIG = array( ...@@ -253,6 +253,7 @@ $CONFIG = array(
* read-only user backend like LDAP), you can specify a custom link, where the * 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 * user is redirected to, when clicking the "reset password" link after a failed
* login-attempt. * 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', 'lost_password_link' => 'https://example.org/link/to/password/reset',
......
...@@ -159,6 +159,8 @@ class LoginController extends Controller { ...@@ -159,6 +159,8 @@ class LoginController extends Controller {
$parameters['canResetPassword'] = $userObj->canChangePassword(); $parameters['canResetPassword'] = $userObj->canChangePassword();
} }
} }
} elseif ($parameters['resetPasswordLink'] === 'disabled') {
$parameters['canResetPassword'] = false;
} }
$parameters['alt_login'] = OC_App::getAlternativeLogIns(); $parameters['alt_login'] = OC_App::getAlternativeLogIns();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment