set admin V3 User

This commit is contained in:
jleroy2023
2024-11-19 15:09:58 +01:00
parent c0a035f1f4
commit 2995c10d50
3 changed files with 67 additions and 15 deletions

View File

@@ -25,7 +25,7 @@ class UserProvider implements UserProviderInterface
?? $this->entityManager->getRepository(Participant::class)
->findOneBy(['pseudo' => $username]); // Ou par pseudo
if (!$user) {
if (!$user || $user->isActif()) {
throw new UsernameNotFoundException('Utilisateur non trouvé');
}