Skip to content

Commit

Permalink
Fix recaller name resolution (#41429)
Browse files Browse the repository at this point in the history
  • Loading branch information
netpok committed Mar 11, 2022
1 parent 5319ddb commit c6fb1ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Session/Middleware/AuthenticateSession.php
Expand Up @@ -41,7 +41,7 @@ public function handle($request, Closure $next)
}

if ($this->guard()->viaRemember()) {
$passwordHash = explode('|', $request->cookies->get($this->auth->getRecallerName()))[2] ?? null;
$passwordHash = explode('|', $request->cookies->get($this->guard()->getRecallerName()))[2] ?? null;

if (! $passwordHash || $passwordHash != $request->user()->getAuthPassword()) {
$this->logout($request);
Expand Down

0 comments on commit c6fb1ee

Please sign in to comment.