Browse Source

Merge branch 'fix_279' into 'dev'

The reset_passw function should not set as not yet active users that have...

See merge request re2o/re2o!554
fix_multi_op_pref
klafyvel 5 years ago
parent
commit
e2a0db3408
  1. 2
      users/forms.py
  2. 2
      users/models.py

2
users/forms.py

@ -269,8 +269,6 @@ class PassForm(FormRevMixin, FieldPermissionFormMixin, forms.ModelForm):
"""
user = super(PassForm, self).save(commit=False)
user.set_password(self.cleaned_data.get("passwd1"))
user.state = User.STATE_NOT_YET_ACTIVE
user.set_active()
user.save()

2
users/models.py

@ -2190,7 +2190,7 @@ def user_post_save(**kwargs):
if is_created:
user.notif_inscription(user.request)
user.set_active()
user.state_sync()
user.ldap_sync(
base=True, access_refresh=True, mac_refresh=False, group_refresh=True

Loading…
Cancel
Save