Skip to content

Commit

Permalink
Fix credentials check (#45437)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Dec 27, 2022
1 parent 8cf394e commit 7fdacd9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Auth/EloquentUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ public function retrieveByCredentials(array $credentials)
*/
public function validateCredentials(UserContract $user, array $credentials)
{
$plain = $credentials['password'];
if (is_null($plain = $credentials['password'])) {
return false;
}

return $this->hasher->check($plain, $user->getAuthPassword());
}
Expand Down

0 comments on commit 7fdacd9

Please sign in to comment.