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

[1.x] Rehash password if required when user uses two factor #557

Conversation

gdebrauwer
Copy link
Contributor

In Laravel 11, "automatic rehashing of user passwords when validating credentials" was added as a feature (laravel/framework#48665). This PR ensures this feature also works when a user uses two-factor authentication.

When a user with two-factor enters their username and password, the user is not logged in because the user is redirected to the two-factor challenge page. This means the password rehashing is not triggered because it is only triggered when the user is immediately logged in when validating the credentials.

@taylorotwell taylorotwell merged commit 6761f04 into laravel:1.x Jul 19, 2024
9 checks passed
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