Skip to content

[9.x] Fix credentials check#45437

Merged
taylorotwell merged 1 commit into
9.xfrom
fix-credentials-check
Dec 27, 2022
Merged

[9.x] Fix credentials check#45437
taylorotwell merged 1 commit into
9.xfrom
fix-credentials-check

Conversation

@driesvints

@driesvints driesvints commented Dec 27, 2022

Copy link
Copy Markdown
Member

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