Fix login cookie
Caused by the change of toggle to an integer, which _exists cant check for. Ommiting the value doesnt have security implications, so just dont check for it.
This commit is contained in:
@@ -19,8 +19,7 @@ class User {
|
||||
if (!$success &&
|
||||
_exists($_COOKIE, 'id') &&
|
||||
_exists($_COOKIE, 'username') &&
|
||||
_exists($_COOKIE, 'salt') &&
|
||||
_exists($_COOKIE, 'toggle')) {
|
||||
_exists($_COOKIE, 'salt')) {
|
||||
|
||||
$user = UserModel::find($_COOKIE['id']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user