FIX: Login, change in separator defined
This commit is contained in:
@ -114,6 +114,10 @@ class Login
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$cookie = $_COOKIE[$this->cookie_name];
|
$cookie = $_COOKIE[$this->cookie_name];
|
||||||
|
if (!str_contains($cookie, $this->cookie_separator)) {
|
||||||
|
$this->removeCookie();
|
||||||
|
return;
|
||||||
|
}
|
||||||
list($this->selector, $this->token) = explode($this->cookie_separator, $cookie);
|
list($this->selector, $this->token) = explode($this->cookie_separator, $cookie);
|
||||||
}
|
}
|
||||||
protected function saveCookie(string $selector, string $token, DateTimeInterface $expires): void
|
protected function saveCookie(string $selector, string $token, DateTimeInterface $expires): void
|
||||||
|
Reference in New Issue
Block a user