Commit 456fc547 authored by Hugo LEVY-FALK's avatar Hugo LEVY-FALK

Modifie le pwd_ntml à la modification de password.

parent c8240747
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment