Skip to content

Commit

Permalink
JWTAuthenticator logic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ergnuor committed Jul 6, 2021
1 parent 16275d9 commit 0664d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Security/Authenticator/JWTAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ protected function loadUser(array $payload, string $identity): UserInterface
}
}

if(!class_exists(UsernameNotFoundException::class)) {
if(!class_exists(UserNotFoundException::class)) {
$ex = new UsernameNotFoundException(sprintf('There is no user with username "%s".', $identity));
$ex->setUsername($identity);
} else {
Expand Down

0 comments on commit 0664d2a

Please sign in to comment.