Quellcode durchsuchen

Updates WebDAV auth hash in password setter

Adrien Panay vor 7 Jahren
Ursprung
Commit
ce771473d2
2 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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."""