diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-24 09:23:25 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-06-01 12:15:10 +0200 |
commit | 69e54bde1f065b220a9b083060c5b7c45dec6483 (patch) | |
tree | 88cf96575868be8cccbae0f3a61c4eb4ace6acfb /lib | |
parent | 9070fd2c03c2c922065baa7cd903ed6e97c2d514 (diff) | |
download | nextcloud-server-69e54bde1f065b220a9b083060c5b7c45dec6483.tar.gz nextcloud-server-69e54bde1f065b220a9b083060c5b7c45dec6483.zip |
Allow opening the password reset link in a new window when its a URL
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/util.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index 894fe9aa59f..488eb8facfd 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -968,7 +968,8 @@ class OC_Util { } $parameters['canResetPassword'] = true; - if (!\OC::$server->getSystemConfig()->getValue('lost_password_link')) { + $parameters['resetPasswordLink'] = \OC::$server->getSystemConfig()->getValue('lost_password_link', ''); + if (!$parameters['resetPasswordLink']) { if (isset($_REQUEST['user'])) { $user = \OC::$server->getUserManager()->get($_REQUEST['user']); if ($user instanceof IUser) { |