Bugfix apiKey login

This commit is contained in:
marko
2023-03-29 05:15:07 +02:00
parent 2fd6873ae1
commit b185f60633
2 changed files with 6 additions and 2 deletions

View File

@@ -33,6 +33,10 @@ class ApiKey
return $this->userId;
}
public function getKey(){
return $this->key;
}
/**
* testing if the apiKey is valid for a certain action
*

View File

@@ -74,7 +74,7 @@ class participo
*
* @retval void
*/
public static function authentificate($action = ['login'])
public static function authentificate($action = 'login')
{
// Ensure a session is started
session_start();