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.4] Fix bug with delete reset token #17524

Merged
merged 1 commit into from
Jan 25, 2017
Merged

[5.4] Fix bug with delete reset token #17524

merged 1 commit into from
Jan 25, 2017

Conversation

yateric
Copy link
Contributor

@yateric yateric commented Jan 25, 2017

In commit c454c87, reset token will be hashed first before saving to the database. So it is not possible to delete the entry based on the public token sent to the user.

I made these changes so that delete method will now accept a user instance and remove all tokens belongs to the user after reset the password.

@taylorotwell taylorotwell merged commit f292260 into laravel:5.4 Jan 25, 2017
@GrahamCampbell GrahamCampbell changed the title fix bug with delete reset token [5.4] Fix bug with delete reset token Jan 25, 2017
taylorotwell pushed a commit that referenced this pull request Feb 21, 2017
In commit c454c87, reset token will be hashed first before saving to the database. So it is not possible to delete the entry based on the public token sent to the user. Similar issue: #17524
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.

2 participants