Skip to content

Commit

Permalink
Ensure required return type
Browse files Browse the repository at this point in the history
  • Loading branch information
MGatner committed Jul 12, 2022
1 parent 34154c9 commit 390ad1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Authentication/LocalAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function validate(array $credentials, bool $returnUser = false)
// Can we find a user with those credentials?
$user = $this->userModel->where($credentials)->first();

if (! $user) {
if (! $user instanceof User) {
$this->error = lang('Auth.badAttempt');

return false;
Expand Down

0 comments on commit 390ad1b

Please sign in to comment.