Allow opening the password reset link in a new window when its a URL
This commit is contained in:
parent
9070fd2c03
commit
69e54bde1f
|
@ -57,7 +57,7 @@ script('core', [
|
|||
</p>
|
||||
|
||||
<?php if (!empty($_['invalidpassword']) && !empty($_['canResetPassword'])) { ?>
|
||||
<a id="lost-password" class="warning" href="">
|
||||
<a id="lost-password" class="warning" href="<?php p($_['resetPasswordLink']); ?>">
|
||||
<?php p($l->t('Wrong password. Reset it?')); ?>
|
||||
</a>
|
||||
<?php } else if (!empty($_['invalidpassword'])) { ?>
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue