From ddd9344c92a1e9ee6d9b685a703a1a71d72c6760 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 22 Oct 2010 19:42:04 +0000 Subject: [PATCH] Qual: redirect instead of the error message --- htdocs/user/passwordforgotten.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/user/passwordforgotten.php b/htdocs/user/passwordforgotten.php index 8b76d82bc37..aaa230d6a91 100644 --- a/htdocs/user/passwordforgotten.php +++ b/htdocs/user/passwordforgotten.php @@ -37,7 +37,10 @@ $langs->load("ldap"); // Security check if ($conf->global->MAIN_SECURITY_DISABLEFORGETPASSLINK) - accessforbidden(); +{ + header("Location: ".DOL_URL_ROOT.'/'); + exit; +} $action=isset($_GET["action"])?$_GET["action"]:$_POST["action"]; $mode=$dolibarr_main_authentication;