mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 15:33:45 +00:00
Fix wrong state check in send_confirm_email_if_necessary
This commit is contained in:
parent
7eca43a0c5
commit
1e2d8d44d1
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue