Authentificacion

This commit is contained in:
2020-04-16 13:46:06 -04:00
parent 9e8533ea50
commit 080577d002
9 changed files with 44 additions and 22 deletions

View File

@ -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);
}
}