From 1eeab86c84c79c7fc00a2bf0acc948ac63b779d7 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)