From e05d0a023bc47e4fa4a9cae8d6df10aec259cd34 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Sun, 14 Mar 2021 01:22:36 +0100 Subject: [PATCH] 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. --- app/classes/User.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/classes/User.php b/app/classes/User.php index 20432f3..aa08570 100644 --- a/app/classes/User.php +++ b/app/classes/User.php @@ -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']);