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] Improve password checks #42248

Merged
merged 4 commits into from
May 4, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove method
  • Loading branch information
taylorotwell committed May 4, 2022
commit 19124e6ce31abab4a6c9a49f28e8cdb52fb4a441
11 changes: 0 additions & 11 deletions src/Illuminate/Auth/EloquentUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,6 @@ public function retrieveByCredentials(array $credentials)
return $query->first();
}

/**
* Remove password values from credentials array.
*
* @param array $credentials
* @return array
*/
protected function credentialsWithoutPassword(array $credentials): array
{
return array_filter($credentials, fn ($key) => ! str_contains($key, 'password'), ARRAY_FILTER_USE_KEY);
}

/**
* Validate a user against the given credentials.
*
Expand Down