8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-05 01:16:27 +00:00

Modifie le pwd_ntml à la modification de password.

This commit is contained in:
Hugo LEVY-FALK 2018-03-02 00:14:58 +01:00
parent c8240747ef
commit 456fc547aa

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