add support for POST and HTTP key api for callbacks

This commit is contained in:
osaajani 2021-01-27 21:37:43 +01:00
parent 64ee42f34f
commit 3b5733e31a
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ use Monolog\Logger;
//If invalid api key, quit with error
$this->user = false;
$api_key = $_GET['api_key'] ?? false;
$api_key = $_GET['api_key'] ?? $_POST['api_key'] ?? $_SERVER['HTTP_X_API_KEY'] ?? false;
if ($api_key)
{
$this->user = $this->internal_user->get_by_api_key($api_key);