Skip to content
This repository was archived by the owner on Feb 21, 2022. It is now read-only.

Commit a7e5063

Browse files
committed
fix: token destructuring offset
1 parent df4e6a0 commit a7e5063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static function findIdentityByAccessToken($token, $type = null)
1919
if (!preg_match('/^(\d+):(\d+):(.+)$/', $token, $matches)) {
2020
throw new ForbiddenHttpException('Invalid token provided');
2121
}
22-
[$userId, $stamp, $checksum] = $matches;
22+
[, $userId, $stamp, $checksum] = $matches;
2323
$now = time();
2424
if ($now > $stamp + 60 || $now < $stamp - 60) {
2525
throw new ForbiddenHttpException('Invalid token provided | Bad Timestamp');

0 commit comments

Comments
 (0)