Browse Source

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.
master
Riyyi 3 years ago
parent
commit
e05d0a023b
  1. 3
      app/classes/User.php

3
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']);

Loading…
Cancel
Save