Fix phpunit

This commit is contained in:
Laurent Destailleur 2020-09-22 18:15:49 +02:00
parent e4bd75dbdc
commit 85fc471d3d

View File

@ -41,7 +41,6 @@ function check_user_password_http($usertotest, $passwordtotest, $entitytotest)
if (!empty($_SERVER["REMOTE_USER"])) if (!empty($_SERVER["REMOTE_USER"]))
{ {
$login = $_SERVER["REMOTE_USER"]; $login = $_SERVER["REMOTE_USER"];
}
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
@ -61,6 +60,7 @@ function check_user_password_http($usertotest, $passwordtotest, $entitytotest)
$_SESSION["dol_loginmesg"] = $langs->trans("ErrorLoginDateValidity"); $_SESSION["dol_loginmesg"] = $langs->trans("ErrorLoginDateValidity");
return '--bad-login-validity--'; return '--bad-login-validity--';
} }
}
return $login; return $login;
} }