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 &&
|
if (!$success &&
|
||||||
_exists($_COOKIE, 'id') &&
|
_exists($_COOKIE, 'id') &&
|
||||||
_exists($_COOKIE, 'username') &&
|
_exists($_COOKIE, 'username') &&
|
||||||
_exists($_COOKIE, 'salt') &&
|
_exists($_COOKIE, 'salt')) {
|
||||||
_exists($_COOKIE, 'toggle')) {
|
|
||||||
|
|
||||||
$user = UserModel::find($_COOKIE['id']);
|
$user = UserModel::find($_COOKIE['id']);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user