From 1e7242f6dfcfb2c65c8e65b7b1192d57d2ac7e7f Mon Sep 17 00:00:00 2001 From: niladic Date: Tue, 11 May 2021 18:46:21 +0200 Subject: [PATCH] =?UTF-8?q?Corrige=20la=20pr=C3=A9inscription=20lorsque=20?= =?UTF-8?q?l=E2=80=99email=20contient=20une=20majuscule=20(#1035)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/SignupController.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/SignupController.scala b/app/controllers/SignupController.scala index 8594842e7..24eee5abe 100644 --- a/app/controllers/SignupController.scala +++ b/app/controllers/SignupController.scala @@ -171,8 +171,8 @@ case class SignupController @Inject() ( .product(EitherT(signupService.byEmails(emails))) .flatMap { case (existingUsers, existingSignups) => val nonExistingEmails = emails.filterNot(email => - existingUsers.exists(_.email === email) || - existingSignups.exists(_.email === email) + existingUsers.exists(_.email.toLowerCase === email.toLowerCase) || + existingSignups.exists(_.email.toLowerCase === email.toLowerCase) ) val now = Instant.now() val newSignups: List[SignupRequest] =