Skip to content

Commit

Permalink
Corrige la préinscription lorsque l’email contient une majuscule (#1035)
Browse files Browse the repository at this point in the history
  • Loading branch information
niladic authored May 11, 2021
1 parent f3a18df commit 1e7242f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/SignupController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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] =
Expand Down

0 comments on commit 1e7242f

Please sign in to comment.