mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-23 20:03:11 +00:00
The reset_passw function should not set as not yet active users that have already been flaged active
This commit is contained in:
parent
3a386b90ae
commit
d5831c5f1f
2 changed files with 1 additions and 3 deletions
|
@ -269,8 +269,6 @@ class PassForm(FormRevMixin, FieldPermissionFormMixin, forms.ModelForm):
|
||||||
"""
|
"""
|
||||||
user = super(PassForm, self).save(commit=False)
|
user = super(PassForm, self).save(commit=False)
|
||||||
user.set_password(self.cleaned_data.get("passwd1"))
|
user.set_password(self.cleaned_data.get("passwd1"))
|
||||||
user.state = User.STATE_NOT_YET_ACTIVE
|
|
||||||
user.set_active()
|
|
||||||
user.save()
|
user.save()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2190,7 +2190,7 @@ def user_post_save(**kwargs):
|
||||||
|
|
||||||
if is_created:
|
if is_created:
|
||||||
user.notif_inscription(user.request)
|
user.notif_inscription(user.request)
|
||||||
|
user.set_active()
|
||||||
user.state_sync()
|
user.state_sync()
|
||||||
user.ldap_sync(
|
user.ldap_sync(
|
||||||
base=True, access_refresh=True, mac_refresh=False, group_refresh=True
|
base=True, access_refresh=True, mac_refresh=False, group_refresh=True
|
||||||
|
|
Loading…
Reference in a new issue