Rennes rebranding
This commit is contained in:
parent
931c264a44
commit
aa348d2b04
8 changed files with 52 additions and 54 deletions
|
|
@ -13,8 +13,7 @@ class CustomSignupForm(SignupForm):
|
|||
|
||||
# Add description on email field
|
||||
self.fields["email"].help_text = _(
|
||||
"Please enter a valid email address ending with `@crans.org` or "
|
||||
"`@ens-paris-saclay.fr`."
|
||||
"Please enter a valid email address ending with `@ens-rennes.fr`"
|
||||
)
|
||||
|
||||
def clean_email(self):
|
||||
|
|
@ -22,10 +21,8 @@ class CustomSignupForm(SignupForm):
|
|||
Check that the email address ends with a trusted domain.
|
||||
"""
|
||||
email = super().clean_email()
|
||||
if not email.endswith("@crans.org") and not email.endswith(
|
||||
"@ens-paris-saclay.fr"
|
||||
):
|
||||
if not email.endswith("@ens-rennes.fr"):
|
||||
raise forms.ValidationError(
|
||||
_("Must end with `@crans.org` or `@ens-paris-saclay.fr`.")
|
||||
_("Must end with `@ens-rennes.fr`.")
|
||||
)
|
||||
return email
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue