From 4b938e60f9931be24f6e882f58fe4e2da0eaba64 Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Thu, 5 Mar 2020 15:40:01 +0100 Subject: [PATCH 1/2] custom_user: remove broken email validation (#40200) --- src/authentic2/custom_user/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/authentic2/custom_user/models.py b/src/authentic2/custom_user/models.py index 348ad907..7316991c 100644 --- a/src/authentic2/custom_user/models.py +++ b/src/authentic2/custom_user/models.py @@ -29,7 +29,7 @@ from django.contrib.auth.models import AbstractBaseUser from django_rbac.models import PermissionMixin from django_rbac.utils import get_role_parenting_model -from authentic2 import utils, validators, app_settings +from authentic2 import utils, app_settings from authentic2.decorators import errorcollector, RequestCache from authentic2.models import Service, AttributeValue, Attribute @@ -141,7 +141,6 @@ class User(AbstractBaseUser, PermissionMixin): email = models.EmailField( _('email address'), blank=True, - validators=[validators.EmailValidator], max_length=254) email_verified = models.BooleanField( default=False, -- 2.20.1