From 0664d2aa88e2ab9fda5c0ec85d9122a8ac94c047 Mon Sep 17 00:00:00 2001 From: Denis Tarasov Date: Tue, 6 Jul 2021 23:08:07 +0300 Subject: [PATCH] JWTAuthenticator logic fix --- Security/Authenticator/JWTAuthenticator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Security/Authenticator/JWTAuthenticator.php b/Security/Authenticator/JWTAuthenticator.php index 7021fc14..74619f8b 100644 --- a/Security/Authenticator/JWTAuthenticator.php +++ b/Security/Authenticator/JWTAuthenticator.php @@ -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 {