Add cookie clear failed validation in App\Authentication
This commit is contained in:
parent
592762be27
commit
e38939ee4b
|
@ -103,6 +103,7 @@ class Authentication
|
||||||
$user['prvkey'] ?? '')) {
|
$user['prvkey'] ?? '')) {
|
||||||
$this->logger->notice("Hash doesn't fit.", ['user' => $data->uid]);
|
$this->logger->notice("Hash doesn't fit.", ['user' => $data->uid]);
|
||||||
$this->session->clear();
|
$this->session->clear();
|
||||||
|
$this->cookie->clear();
|
||||||
$this->baseUrl->redirect();
|
$this->baseUrl->redirect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue