Skip to content
Snippets Groups Projects
Verified Commit 183b861c authored by Damien's avatar Damien
Browse files

FEAT #10954 TIME 0:05 jwt array again

parent 561d5425
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,7 @@ class AuthenticationController ...@@ -51,6 +51,7 @@ class AuthenticationController
} }
$time = time(); $time = time();
$jwt = (array)$jwt; $jwt = (array)$jwt;
$jwt['user'] = (array)$jwt['user'];
if (!empty($jwt) && $jwt['exp'] > $time && !empty($jwt['user']['id'])) { if (!empty($jwt) && $jwt['exp'] > $time && !empty($jwt['user']['id'])) {
$id = $jwt['user']['id']; $id = $jwt['user']['id'];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment