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

[6.x] Ability to override set user's password on password reset #30218

Merged
merged 1 commit into from
Oct 9, 2019
Merged

[6.x] Ability to override set user's password on password reset #30218

merged 1 commit into from
Oct 9, 2019

Conversation

arcanedev-maroc
Copy link
Contributor

@arcanedev-maroc arcanedev-maroc commented Oct 8, 2019

This PR solves the issue of hashing the password twice when using a mutator like setPasswordAttribute in User model.

Also, avoiding to override the whole method in Illuminate\Foundation\Auth\ResetsPasswords to solve this issue.

Related: #11012

This PR solves the issue of hashing the password twice when using a mutator like `setPasswordAttribute` in User model
@taylorotwell taylorotwell merged commit 6e845d7 into laravel:6.x Oct 9, 2019
@arcanedev-maroc arcanedev-maroc deleted the patch-1 branch October 9, 2019 13:32
jasonvarga added a commit to statamic/cms that referenced this pull request Dec 2, 2020
Closes #2795

Looks like we were overriding the entire resetPassword method because it was before a setUserPassword method was extracted in laravel/framework#30218

Seems like that PR was created for almost the same reason.
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