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

3
app/classes/User.php

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

Loading…
Cancel
Save