8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 11:23:10 +00:00

Merge branch 'fix_ntlm' into 'master'

Modifie le pwd_ntml à la modification de password.

See merge request federez/re2o!84
This commit is contained in:
chirac 2018-03-02 00:39:37 +01:00
commit 668724e5ff

View file

@ -632,10 +632,10 @@ class User(FieldPermissionModelMixin, AbstractBaseUser, PermissionsMixin):
)
return
def set_user_password(self, password):
def set_password(self, password):
""" A utiliser de préférence, set le password en hash courrant et
dans la version ntlm"""
self.set_password(password)
super().set_password(password)
self.pwd_ntlm = hashNT(password)
return