Fix phpunit
This commit is contained in:
parent
e4bd75dbdc
commit
85fc471d3d
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user