summaryrefslogtreecommitdiff
path: root/app/lttr/validators.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/lttr/validators.py')
-rw-r--r--app/lttr/validators.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/app/lttr/validators.py b/app/lttr/validators.py
index 754df3b..a6355bf 100644
--- a/app/lttr/validators.py
+++ b/app/lttr/validators.py
@@ -8,11 +8,12 @@ def validate_email_nouser(email):
Check if the email address does not belong to an existing user.
"""
# Check whether we should be subscribed to as a user
- User = get_user_model()
+ #User = get_user_model()
- if User.objects.filter(email__exact=email).exists():
- raise ValidationError(_(
- "The e-mail address '%(email)s' belongs to a user with an "
- "account on this site. Please log in as that user "
- "and try again."
- ) % {'email': email})
+ #if User.objects.filter(email__exact=email).exists():
+ # raise ValidationError(_(
+ # "The e-mail address '%(email)s' belongs to a user with an "
+ # "account on this site. Please log in as that user "
+ # "and try again."
+ # ) % {'email': email})
+ pass