Skip to content

Commit

Permalink
bug #887 JWTAuthenticator logic fix (ergnuor)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.x branch.

Discussion
----------

JWTAuthenticator logic fix

Am I right or just missing something? :)

Commits
-------

0664d2a JWTAuthenticator logic fix
  • Loading branch information
chalasr committed Jul 6, 2021
2 parents 16275d9 + 0664d2a commit 79ce8cb
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 79ce8cb

Please sign in to comment.