Skip to content

Commit

Permalink
Fix double-serialized
Browse files Browse the repository at this point in the history
  • Loading branch information
svyrydenko committed Dec 22, 2017
1 parent 9b18e7a commit 1e7c1ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RedisAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static function getUserIdByHeaders(array $headers)
if (!$sessionFile = @$redis->get(config('cache.prefix', 'laravel') . ':' . $sessionName)) {
return false;
} else {
$object = @unserialize($sessionFile);
$object = @unserialize(unserialize($sessionFile));
$userId = @$object['login_web_' . sha1(SessionGuard::class)];
return $userId;
}
Expand Down

0 comments on commit 1e7c1ab

Please sign in to comment.