mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-09-12 01:03:09 +00:00
Fix wrong state check in send_confirm_email_if_necessary
This commit is contained in:
parent
1c65dc50ff
commit
5fdb8a7b1e
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