mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-25 22:22:26 +00:00
Call user.confirm_mail in UserManager._create_user
This commit is contained in:
parent
01a52f88d3
commit
1eeab86c84
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue