Commit ce43ad94 authored by Matthias Adrowski's avatar Matthias Adrowski
Browse files

[TASK] Fix php8 error when user could not be logged in

parent 23873333
......@@ -59,7 +59,7 @@ class BearerAuthenticationService extends AbstractAuthenticationService implemen
* @throws Exception
*/
public function verifyRequest(array $requestHeaders): bool {
$bearerToken = $requestHeaders['bearertoken'][0];
$bearerToken = $requestHeaders['bearertoken'][0] ?? '';
return ($bearerToken !== '' && $this->verifyBearerToken($bearerToken));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment