Add POST api_key in addition of GET

This commit is contained in:
osaajani 2020-06-04 12:54:15 +02:00
parent fdb01ffabc
commit 423501d1a4
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ namespace controllers\publics;
//If no user, quit with error
$this->user = false;
$api_key = $_GET['api_key'] ?? false;
$api_key = $_GET['api_key'] ?? $_POST['api_key'] ?? false;
if ($api_key)
{
$this->user = $this->internal_user->get_by_api_key($api_key);