Skip to content

Commit

Permalink
logoutOtherDevices breaks "remember me" cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
bolivir committed Aug 31, 2018
1 parent 4eab953 commit 22669b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Illuminate/Auth/SessionGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -546,10 +546,12 @@ public function logoutOtherDevices($password, $attribute = 'password')
if (! $this->user()) {
return;
}

return tap($this->user()->forceFill([
$forceFillResult = tap($this->user()->forceFill([
$attribute => Hash::make($password),
]))->save();
$this->queueRecallerCookie($this->user());

return $forceFillResult;
}

/**
Expand Down

0 comments on commit 22669b8

Please sign in to comment.