8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 11:23:10 +00:00

Fix wrong state check in send_confirm_email_if_necessary

This commit is contained in:
Jean-Romain Garnier 2020-04-17 22:57:41 +02:00 committed by Jean-Romain Garnier
parent 7eca43a0c5
commit 1e2d8d44d1

View file

@ -813,7 +813,7 @@ class User(
return False
# Don't allow users without a confirmed email to postpone their due date
if self.state == self.STATE_ACTIVE or not self.email_change_date:
if self.email_state == self.EMAIL_STATE_VERIFIED or not self.email_change_date:
self.email_change_date = timezone.now()
self.save()