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:
Riyyi
2021-03-14 01:22:36 +01:00
parent 93a4318687
commit e05d0a023b
+1 -2
View File
@@ -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']);