Code comment

This commit is contained in:
Laurent Destailleur 2017-06-25 12:26:16 +02:00
parent 78ebffe4f1
commit 8bfda8d4ee

View File

@ -93,7 +93,7 @@ class DolibarrApiAccess implements iAuthenticate
// TODO Add option to disable use of api key on url. Return errors if used.
$api_key = $_GET['DOLAPIKEY']; // With GET method
}
if (isset($_SERVER['HTTP_DOLAPIKEY']))
if (isset($_SERVER['HTTP_DOLAPIKEY'])) // Param DOLAPIKEY in header can be read with HTTP_DOLAPIKEY
{
$api_key = $_SERVER['HTTP_DOLAPIKEY']; // With header method (recommanded)
}