authparams : if there is no password provided, don't generate a notice in logs

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2964 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2016-07-26 08:33:48 +00:00
parent 59b47efeb0
commit a93e3b5783

View File

@@ -74,6 +74,8 @@ class authparams
}
else
{
if (! array_key_exists ("PHP_AUTH_PW", $_SERVER))
$_SERVER["PHP_AUTH_PW"] = null;
return array ("email"=>trim ($_SERVER["PHP_AUTH_USER"]),
"password"=>$_SERVER["PHP_AUTH_PW"]);
}