Skip to content

Commit

Permalink
Update TwoFactorAuthPipe.php
Browse files Browse the repository at this point in the history
hot fix
  • Loading branch information
lee-to authored Dec 19, 2023
1 parent 66bca80 commit b7f1737
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/TwoFactorAuthPipe.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ protected function validateCredentials(Request $request): ?Model
?->where($username, $request->get('username'))
?->first();

if (is_null($user)) {
return null;
}

$attempt = MoonShineAuth::provider()
?->validateCredentials($user, ['password' => $request->get('password')]);

Expand Down

0 comments on commit b7f1737

Please sign in to comment.