Przeglądaj źródła

Updates WebDAV auth hash in password setter

Adrien Panay 7 lat temu
rodzic
commit
ce771473d2

+ 0 - 2
tracim/tracim/controllers/admin/user.py Wyświetl plik

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

+ 1 - 0
tracim/tracim/model/auth.py Wyświetl plik

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