Authentificacion
This commit is contained in:
@ -18,6 +18,12 @@ class Login {
|
||||
$container->get('urls.base'),
|
||||
'admin'
|
||||
]))
|
||||
->withStatus(301);
|
||||
->withStatus(302);
|
||||
}
|
||||
public function logout(Request $request, Response $response, Service $login, Container $container): Response {
|
||||
$login->logout();
|
||||
return $response
|
||||
->withHeader('Location', $container->get('urls.base'))
|
||||
->withStatus(302);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user