First iteration of using cookies to store session/securetoken
This commit is contained in:
@ -28,9 +28,7 @@
|
||||
exit;
|
||||
}
|
||||
|
||||
if ((!empty($_COOKIE['Exp']) && !empty($_COOKIE['Sub']) && !empty($_COOKIE['JWT'])) && validateToken([
|
||||
'Exp' => $_COOKIE['Exp'],
|
||||
'Sub' => $_COOKIE['Sub'],
|
||||
if (!empty($_COOKIE['JWT']) && validateToken([
|
||||
'JWT' => $_COOKIE['JWT']
|
||||
])['status'] == "Success") {
|
||||
// Valid authentication token found
|
||||
|
Reference in New Issue
Block a user