From 423501d1a4e835d1df945000287029a052a3448d Mon Sep 17 00:00:00 2001 From: osaajani <> Date: Thu, 4 Jun 2020 12:54:15 +0200 Subject: [PATCH] Add POST api_key in addition of GET --- controllers/publics/Api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/publics/Api.php b/controllers/publics/Api.php index 0e3cb63..92f44b7 100644 --- a/controllers/publics/Api.php +++ b/controllers/publics/Api.php @@ -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);