mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-22 16:23:35 +01:00
Fix linter
This commit is contained in:
parent
d4381440a9
commit
6c7dacf77a
@ -10,7 +10,7 @@ class MyAccountAdapter(DefaultAccountAdapter):
|
|||||||
return settings.SSL_FRONTEND_HOST + url
|
return settings.SSL_FRONTEND_HOST + url
|
||||||
|
|
||||||
def clean_email(self, email):
|
def clean_email(self, email):
|
||||||
if hasattr(settings,"ALLOWED_DOMAINS_FOR_USER_REGISTRATION") and settings.ALLOWED_DOMAINS_FOR_USER_REGISTRATION:
|
if hasattr(settings, "ALLOWED_DOMAINS_FOR_USER_REGISTRATION") and settings.ALLOWED_DOMAINS_FOR_USER_REGISTRATION:
|
||||||
if email.split("@")[1] not in settings.ALLOWED_DOMAINS_FOR_USER_REGISTRATION:
|
if email.split("@")[1] not in settings.ALLOWED_DOMAINS_FOR_USER_REGISTRATION:
|
||||||
raise ValidationError("Domain is not in the permitted list")
|
raise ValidationError("Domain is not in the permitted list")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user