mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +00:00
Automatically consider email valid when user is set to STATE_ACTIVE
This commit is contained in:
parent
d4f13f8832
commit
b7021f32cb
1 changed files with 4 additions and 5 deletions
|
@ -654,16 +654,15 @@ class User(
|
|||
and self.state == self.STATE_FULL_ARCHIVE
|
||||
):
|
||||
self.full_archive()
|
||||
elif (
|
||||
self.__original_state == self.STATE_EMAIL_NOT_YET_CONFIRMED
|
||||
and self.state not in [self.STATE_EMAIL_NOT_YET_CONFIRMED, self.STATE_DISABLED]
|
||||
):
|
||||
self.email_change_date = None
|
||||
elif (
|
||||
self.__original_state != self.STATE_EMAIL_NOT_YET_CONFIRMED
|
||||
and self.state == self.STATE_EMAIL_NOT_YET_CONFIRMED
|
||||
):
|
||||
self.email_change_date = timezone.now()
|
||||
elif (
|
||||
self.state == self.STATE_ACTIVE
|
||||
):
|
||||
self.email_change_date = None
|
||||
|
||||
def ldap_sync(
|
||||
self, base=True, access_refresh=True, mac_refresh=True, group_refresh=False
|
||||
|
|
Loading…
Reference in a new issue