From 03aacdb86ed210dcf549acfadf3ed36d8a76c8f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20Caux?= <git@jscaux.org> Date: Tue, 3 Jan 2023 14:38:51 +0100 Subject: [PATCH] Debug registration form (email match in existing Profiles) --- scipost_django/scipost/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scipost_django/scipost/forms.py b/scipost_django/scipost/forms.py index 2af2ae31b..1b2148bb3 100644 --- a/scipost_django/scipost/forms.py +++ b/scipost_django/scipost/forms.py @@ -204,7 +204,7 @@ class RegistrationForm(forms.Form): ) profile = Profile.objects.filter( - emails__email__icontains=self.cleaned_data["email"] + emails__email__iexact=self.cleaned_data["email"] ).first() try: if profile and profile.contributor: -- GitLab