summaryrefslogtreecommitdiffstats
path: root/lib/private/util.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-12-07 15:37:26 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2015-12-07 15:41:40 +0100
commit87bc02c6cd482a28aa175d269d48a849ca9eb399 (patch)
treef8e6d45d2f773f3c73a0393b921677178c56b5d2 /lib/private/util.php
parentf8f3c9ecf9da1f14722f6d3266a0e80ea157f98f (diff)
downloadnextcloud-server-87bc02c6cd482a28aa175d269d48a849ca9eb399.tar.gz
nextcloud-server-87bc02c6cd482a28aa175d269d48a849ca9eb399.zip
Allow specifying a custom reset-password-url
Diffstat (limited to 'lib/private/util.php')
-rw-r--r--lib/private/util.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index 532730998c6..c31ad63b9be 100644
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -948,9 +948,11 @@ class OC_Util {
}
$parameters['canResetPassword'] = true;
- $user = \OC::$server->getUserManager()->get($_REQUEST['user']);
- if ($user instanceof IUser) {
- $parameters['canResetPassword'] = $user->canChangePassword();
+ if (!\OC::$server->getSystemConfig()->getValue('lost_password_link')) {
+ $user = \OC::$server->getUserManager()->get($_REQUEST['user']);
+ if ($user instanceof IUser) {
+ $parameters['canResetPassword'] = $user->canChangePassword();
+ }
}
$parameters['alt_login'] = OC_App::getAlternativeLogIns();