From 368cded9b2db16894ed142dde2805e5784b0a3e9 Mon Sep 17 00:00:00 2001
From: pfleu <fleutotp@gmail.com>
Date: Wed, 25 Jan 2023 11:19:06 +0100
Subject: [PATCH] =?UTF-8?q?EMail=20cr=C3=A9ation=20de=20compte=20:=20on=20?=
 =?UTF-8?q?envoie=20l'email=20mais=20on=20ne=20teste=20pas=20que=20l'user?=
 =?UTF-8?q?=20est=20activ=C3=A9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/EventSubscriber/CheckVerifiedUserSubscriber.php | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/EventSubscriber/CheckVerifiedUserSubscriber.php b/src/EventSubscriber/CheckVerifiedUserSubscriber.php
index 52affab..a6643a1 100644
--- a/src/EventSubscriber/CheckVerifiedUserSubscriber.php
+++ b/src/EventSubscriber/CheckVerifiedUserSubscriber.php
@@ -20,11 +20,11 @@ class CheckVerifiedUserSubscriber implements EventSubscriberInterface
         if (!$user instanceof User) {
             throw new \Exception('Unexpected user type');
         }
-//        if (!$user->getIsVerified()) {
-//            throw new CustomUserMessageAuthenticationException(
-//                "Veuillez confirmer la création de votre compte depuis l'email reçu."
-//            );
-//        }
+        if (!$user->getIsVerified()) {
+            throw new CustomUserMessageAuthenticationException(
+                "Veuillez confirmer la création de votre compte depuis l'email reçu."
+            );
+        }
     }
     public static function getSubscribedEvents()
     {
-- 
GitLab