8
0
Fork 0
mirror of https://gitlab.federez.net/re2o/re2o synced 2024-07-06 22:24:06 +00:00

Fix marking email as verified

This commit is contained in:
Jean-Romain Garnier 2020-04-17 18:32:38 +02:00 committed by Jean-Romain Garnier
parent 30667eb259
commit a940f4f078

View file

@ -920,12 +920,9 @@ class User(
def confirm_mail(self):
"""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
# Let the "set_active" method handle the rest
self.state = self.STATE_NOT_YET_ACTIVE
self.set_active()
self.email_state = self.EMAIL_STATE_VERIFIED
@cached_property
def email_address(self):