From 5c063cf7c997d3cf198218763702eba9c38230af Mon Sep 17 00:00:00 2001
From: Joas Schilling
Date: Tue, 24 May 2016 09:23:25 +0200
Subject: [PATCH] Allow opening the password reset link in a new window when
its a URL
---
core/Controller/LoginController.php | 3 ++-
core/templates/login.php | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php
index ea857bb57d..2c7b7faed6 100644
--- a/core/Controller/LoginController.php
+++ b/core/Controller/LoginController.php
@@ -135,7 +135,8 @@ class LoginController extends Controller {
}
$parameters['canResetPassword'] = true;
- if (!$this->config->getSystemValue('lost_password_link')) {
+ $parameters['resetPasswordLink'] = $this->config->getSystemValue('lost_password_link', '');
+ if (!$parameters['resetPasswordLink']) {
if (!is_null($user) && $user !== '') {
$userObj = $this->userManager->get($user);
if ($userObj instanceof IUser) {
diff --git a/core/templates/login.php b/core/templates/login.php
index 45814fc71d..5b0fd97cfd 100644
--- a/core/templates/login.php
+++ b/core/templates/login.php
@@ -57,7 +57,7 @@ script('core', [
-
+
t('Wrong password. Reset it?')); ?>