diff --git a/src/authentic2_auth_fedict/views.py b/src/authentic2_auth_fedict/views.py index 9e78a68..6dfe1e9 100644 --- a/src/authentic2_auth_fedict/views.py +++ b/src/authentic2_auth_fedict/views.py @@ -14,6 +14,8 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +import random + from django.core import signing from django.urls import reverse from django.db import transaction @@ -59,7 +61,7 @@ class LoginView(mellon.views.LoginView): user.is_active = False user.save() data = {} - data['email'] = None + data['email'] = 'adresse@email.invalid#%s' % random.randint(0, 10000000) data['confirm_data'] = True data['valid_email'] = False data['skip_email_check'] = True