mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 08:56:27 +02:00
Add POST api_key in addition of GET
This commit is contained in:
parent
fdb01ffabc
commit
423501d1a4
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue