mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 07:02:26 +00:00
Fix marking email as verified
This commit is contained in:
parent
d8cfb2e3d5
commit
8e543a04b1
1 changed files with 2 additions and 5 deletions
|
@ -920,12 +920,9 @@ class User(
|
||||||
|
|
||||||
def confirm_mail(self):
|
def confirm_mail(self):
|
||||||
"""Marque l'email de l'utilisateur comme confirmé"""
|
"""Marque l'email de l'utilisateur comme confirmé"""
|
||||||
# Reset the email change date
|
# Reset the email change date and update the email status
|
||||||
self.email_change_date = None
|
self.email_change_date = None
|
||||||
|
self.email_state = self.EMAIL_STATE_VERIFIED
|
||||||
# Let the "set_active" method handle the rest
|
|
||||||
self.state = self.STATE_NOT_YET_ACTIVE
|
|
||||||
self.set_active()
|
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def email_address(self):
|
def email_address(self):
|
||||||
|
|
Loading…
Reference in a new issue