Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.6] logoutOtherDevices breaks "remember me" cookie #25386

Merged
merged 1 commit into from
Aug 31, 2018
Merged

[5.6] logoutOtherDevices breaks "remember me" cookie #25386

merged 1 commit into from
Aug 31, 2018

Conversation

bolivir
Copy link
Contributor

@bolivir bolivir commented Aug 31, 2018

Current issue:
Before this PR the remember me cookie would break when the user used the function logoutOtherDevices(). See issue #24857
logoutOtherDevices() changes the password hash. Now we have a mismatch because the new password hash is not the same as the one saved in the "remember me" cookie.

Fixes:
After the forceFill of the user with the new hashed password, the method queueRecallerCookie() now gets called to generate/set a new cookie so the current user can be authenticated with the cookie if the session expires.

Cheers

@bolivir bolivir changed the title logoutOtherDevices breaks "remember me" cookie [5.6] logoutOtherDevices breaks "remember me" cookie Aug 31, 2018
@taylorotwell taylorotwell merged commit 22669b8 into laravel:5.6 Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants