From ac5f509d4e980630ae5c896da7bd63340790a50a Mon Sep 17 00:00:00 2001 From: djpbessems Date: Mon, 28 Jan 2019 13:47:37 +0100 Subject: [PATCH] Fixed incorrect syntax (trying to use an object as an associative array) --- include/lucidAuth.functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lucidAuth.functions.php b/include/lucidAuth.functions.php index 7297513..e9d9b3a 100644 --- a/include/lucidAuth.functions.php +++ b/include/lucidAuth.functions.php @@ -101,7 +101,7 @@ function validateToken (string $secureToken) { } if (!empty($storedTokens) && sizeof(array_filter($storedTokens, function ($value) use ($jwtPayload) { - return $value['iat'] === $jwtPayload['iat']; + return $value->iat === $jwtPayload->iat; })) === 1) { // At least one of the database-stored tokens match return ['status' => 'Success', 'token' => $jwtPayload];