mirror of
https://github.com/grocy/grocy.git
synced 2026-05-25 04:24:07 +00:00
Applied PHP formatting rules
This commit is contained in:
@@ -11,6 +11,7 @@ class DefaultAuthMiddleware extends AuthMiddleware
|
||||
// First try to authenticate by API key
|
||||
$auth = new ApiKeyAuthMiddleware($this->AppContainer, $this->ResponseFactory);
|
||||
$user = $auth->authenticate($request);
|
||||
|
||||
if ($user !== null)
|
||||
{
|
||||
return $user;
|
||||
@@ -21,4 +22,5 @@ class DefaultAuthMiddleware extends AuthMiddleware
|
||||
$user = $auth->authenticate($request);
|
||||
return $user;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user