Add cookie clear failed validation in App\Authentication

This commit is contained in:
Hypolite Petovan 2020-01-08 19:51:54 -05:00
parent 592762be27
commit e38939ee4b
1 changed files with 1 additions and 0 deletions

View File

@ -103,6 +103,7 @@ class Authentication
$user['prvkey'] ?? '')) {
$this->logger->notice("Hash doesn't fit.", ['user' => $data->uid]);
$this->session->clear();
$this->cookie->clear();
$this->baseUrl->redirect();
}