set admin V3 User
This commit is contained in:
@@ -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é');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user