From 753089a99d687626f290dd9b2c9c6b778d939148 Mon Sep 17 00:00:00 2001 From: Yanis LISIMA Date: Sun, 23 Sep 2018 21:26:07 +0200 Subject: [PATCH] NEW Change forgotten password link in general parameters In some cases, user password are managed by external systems (ex: LDAP). The new parameter MAIN_PASSWORD_FORGOTLINK will send users to true forgotten password link. --- htdocs/core/tpl/login.tpl.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/core/tpl/login.tpl.php b/htdocs/core/tpl/login.tpl.php index 5cfb09946e5..f3367d3e90f 100644 --- a/htdocs/core/tpl/login.tpl.php +++ b/htdocs/core/tpl/login.tpl.php @@ -213,7 +213,9 @@ if ($forgetpasslink || $helpcenterlink) echo '
'; echo '
'; if ($forgetpasslink) { - echo ''; + $url=DOL_URL_ROOT.'/user/passwordforgotten.php'.$moreparam; + if (! empty($conf->global->MAIN_PASSWORD_FORGOTLINK)) $url=$conf->global->MAIN_PASSWORD_FORGOTLINK; + echo ''; echo $langs->trans('PasswordForgotten'); echo ''; }