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

[9.x] Fix credentials check #45437

Merged
merged 1 commit into from
Dec 27, 2022
Merged

[9.x] Fix credentials check #45437

merged 1 commit into from
Dec 27, 2022

Conversation

driesvints
Copy link
Member

@driesvints driesvints commented Dec 27, 2022

Right now, because of recent Testbench changes, some tests of our first party libraries fail:

https://github.com/laravel/fortify/actions/runs/3659211237/jobs/6441135700#step:5:21

This is because sometimes, a null password is sent through to the AbstractHasher class to check. I believe that instead of fixing this in every library, we can fix this in Laravel itself.

In the EloquentUserProvider, when the password is taken from the credentials array we'll check if it's null. If it is, then we'll automatically fail the check because it's not a valid password.

@driesvints driesvints changed the title Fix credentials check [9.x] Fix credentials check Dec 27, 2022
@taylorotwell taylorotwell merged commit 7fdacd9 into 9.x Dec 27, 2022
@taylorotwell taylorotwell deleted the fix-credentials-check branch December 27, 2022 16:27
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