8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-26 06:32:26 +00:00

Call user.confirm_mail in UserManager._create_user

This commit is contained in:
Jean-Romain Garnier 2020-04-17 22:49:50 +02:00 committed by Gabriel Detraz
parent a7b989b7de
commit def91bff7a

View file

@ -147,8 +147,7 @@ class UserManager(BaseUserManager):
) )
user.set_password(password) user.set_password(password)
user.email_change_date = None user.confirm_mail()
user.email_state = User.EMAIL_STATE_VERIFIED
if su: if su:
user.is_superuser = True user.is_superuser = True
user.save(using=self._db) user.save(using=self._db)