refactor: remove redundant guard from logout controller
The guard is now in the Logout use case. Controller just passes the raw cookie value through.
This commit is contained in:
parent
c6306af73b
commit
e2b69632f6
1 changed files with 1 additions and 3 deletions
|
|
@ -64,9 +64,7 @@ class AuthController
|
|||
$cookies = $request->getCookieParams();
|
||||
$token = $cookies[AuthMiddleware::COOKIE_NAME] ?? null;
|
||||
|
||||
if (is_string($token) && $token !== '') {
|
||||
$this->logout->execute($token);
|
||||
}
|
||||
$this->logout->execute($token);
|
||||
|
||||
$response = new Response(204);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue