SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 03aacdb8 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Debug registration form (email match in existing Profiles)

parent f95bd0cf
No related branches found
No related tags found
No related merge requests found
...@@ -204,7 +204,7 @@ class RegistrationForm(forms.Form): ...@@ -204,7 +204,7 @@ class RegistrationForm(forms.Form):
) )
profile = Profile.objects.filter( profile = Profile.objects.filter(
emails__email__icontains=self.cleaned_data["email"] emails__email__iexact=self.cleaned_data["email"]
).first() ).first()
try: try:
if profile and profile.contributor: if profile and profile.contributor:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment