Browse Source

Updates WebDAV auth hash in password setter

Adrien Panay 7 years ago
parent
commit
ce771473d2
2 changed files with 1 additions and 2 deletions
  1. 0 2
      tracim/tracim/controllers/admin/user.py
  2. 1 0
      tracim/tracim/model/auth.py

+ 0 - 2
tracim/tracim/controllers/admin/user.py View File

336
             password = self.generate_password()
336
             password = self.generate_password()
337
             user.password = password
337
             user.password = password
338
 
338
 
339
-        user.webdav_left_digest_response_hash = '%s:/:%s' % (email, password)
340
-
341
         api.save(user)
339
         api.save(user)
342
 
340
 
343
         # Now add the user to related groups
341
         # Now add the user to related groups

+ 1 - 0
tracim/tracim/model/auth.py View File

196
     def _set_password(self, password):
196
     def _set_password(self, password):
197
         """Hash ``password`` on the fly and store its hashed version."""
197
         """Hash ``password`` on the fly and store its hashed version."""
198
         self._password = self._hash_password(password)
198
         self._password = self._hash_password(password)
199
+        self.update_webdav_digest_auth(password)
199
 
200
 
200
     def _get_password(self):
201
     def _get_password(self):
201
         """Return the hashed version of the password."""
202
         """Return the hashed version of the password."""