* 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',
$parameters['canResetPassword'] = $userObj->canChangePassword();
}
}
+ } elseif ($parameters['resetPasswordLink'] === 'disabled') {
+ $parameters['canResetPassword'] = false;
}
$parameters['alt_login'] = OC_App::getAlternativeLogIns();