Fix duplicate email on account creation
This commit is contained in:
parent
d2fa5ce02f
commit
0d0f72a9eb
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ class CustomSignupForm(SignupForm):
|
||||||
"""
|
"""
|
||||||
Check that the email address ends with a trusted domain.
|
Check that the email address ends with a trusted domain.
|
||||||
"""
|
"""
|
||||||
email = self.cleaned_data.get("email")
|
email = super().clean_email()
|
||||||
if not email.endswith("@crans.org") and not email.endswith("@ens-paris-saclay.fr"):
|
if not email.endswith("@crans.org") and not email.endswith("@ens-paris-saclay.fr"):
|
||||||
raise forms.ValidationError(
|
raise forms.ValidationError(
|
||||||
_("Must end with `@crans.org` or `@ens-paris-saclay.fr`.")
|
_("Must end with `@crans.org` or `@ens-paris-saclay.fr`.")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue