Disabled token logic
Causing a bunch of shit in scenarios where you want to unauth / reauth a user as the cookie isn't immediately available. Should resolve all of the "You are not properly authenticated" errors we see.
This commit is contained in:
parent
0c3b239417
commit
b82b04b121
1 changed files with 3 additions and 1 deletions
|
@ -255,12 +255,14 @@ class Security
|
|||
if (self::checkSession() == true && isset($_SESSION['__pickles']['security']['user_id']))
|
||||
{
|
||||
// Checks the session against the cookie
|
||||
/*
|
||||
if (isset($_SESSION['__pickles']['security']['token'], $_COOKIE['pickles_security_token'])
|
||||
&& $_SESSION['__pickles']['security']['token'] != $_COOKIE['pickles_security_token'])
|
||||
{
|
||||
Security::logout();
|
||||
}
|
||||
elseif (isset($_SESSION['__pickles']['security']['level']) && $_SESSION['__pickles']['security']['level'] != null)
|
||||
else*/
|
||||
if (isset($_SESSION['__pickles']['security']['level']) && $_SESSION['__pickles']['security']['level'] != null)
|
||||
{
|
||||
return $_SESSION['__pickles']['security']['level'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue