8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 20:03:11 +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 Gabriel Detraz
parent 1c65dc50ff
commit 5fdb8a7b1e

View file

@ -813,7 +813,7 @@ class User(
return False return False
# Don't allow users without a confirmed email to postpone their due date # 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.email_change_date = timezone.now()
self.save() self.save()