aboutsummaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
authorUjjwal Bhardwaj <ujjwalb1996@gmail.com>2017-04-19 16:05:05 +0530
committerJoas Schilling <coding@schilljs.com>2017-05-11 10:27:33 +0200
commit7c23414eef64593803d2e9ecc6e4f17985b7ebcc (patch)
tree5ce95bc99d30e6658fde3b52140422d27703197b /core/Controller
parent241226c23c3333c6ad8759df486a8bbc107d6a68 (diff)
downloadnextcloud-server-7c23414eef64593803d2e9ecc6e4f17985b7ebcc.tar.gz
nextcloud-server-7c23414eef64593803d2e9ecc6e4f17985b7ebcc.zip
Disable reset password link. Issue: #27440
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/LoginController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php
index 691d74cdc60..93b695dd999 100644
--- a/core/Controller/LoginController.php
+++ b/core/Controller/LoginController.php
@@ -159,6 +159,8 @@ class LoginController extends Controller {
$parameters['canResetPassword'] = $userObj->canChangePassword();
}
}
+ } elseif ($parameters['resetPasswordLink'] === 'disabled') {
+ $parameters['canResetPassword'] = false;
}
$parameters['alt_login'] = OC_App::getAlternativeLogIns();