From 456fc547aa99330367e89ba670ae21a1d758e6be Mon Sep 17 00:00:00 2001 From: Hugo LEVY-FALK Date: Fri, 2 Mar 2018 00:14:58 +0100 Subject: [PATCH] =?UTF-8?q?Modifie=20le=20pwd=5Fntml=20=C3=A0=20la=20modif?= =?UTF-8?q?ication=20de=20password.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- users/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/models.py b/users/models.py index c74a2145..785f853f 100644 --- a/users/models.py +++ b/users/models.py @@ -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