From def91bff7af7af58979cd7ad9e1a37fe2c99eab8 Mon Sep 17 00:00:00 2001 From: Jean-Romain Garnier Date: Fri, 17 Apr 2020 22:49:50 +0200 Subject: [PATCH] Call user.confirm_mail in UserManager._create_user --- users/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/users/models.py b/users/models.py index 8431b0b3..f6596fa9 100755 --- a/users/models.py +++ b/users/models.py @@ -147,8 +147,7 @@ class UserManager(BaseUserManager): ) user.set_password(password) - user.email_change_date = None - user.email_state = User.EMAIL_STATE_VERIFIED + user.confirm_mail() if su: user.is_superuser = True user.save(using=self._db)