瀏覽代碼

Drops useless WebDAV authentication hash updates

Adrien Panay 7 年之前
父節點
當前提交
eeac4ebfa2
共有 3 個文件被更改,包括 0 次插入4 次删除
  1. 0 2
      tracim/tracim/command/user.py
  2. 0 1
      tracim/tracim/controllers/admin/user.py
  3. 0 1
      tracim/tracim/controllers/user.py

+ 0 - 2
tracim/tracim/command/user.py 查看文件

@@ -111,7 +111,6 @@ class UserCommand(AppContextCommand):
111 111
 
112 112
         try:
113 113
             user = User(email=login, password=password, **kwargs)
114
-            user.update_webdav_digest_auth(password)
115 114
             self._session.add(user)
116 115
             self._session.flush()
117 116
 
@@ -130,7 +129,6 @@ class UserCommand(AppContextCommand):
130 129
     def _update_password_for_login(self, login, password):
131 130
         user = self._user_api.get_one_by_email(login)
132 131
         user.password = password
133
-        user.update_webdav_digest_auth(password)
134 132
         self._session.flush()
135 133
         transaction.commit()
136 134
 

+ 0 - 1
tracim/tracim/controllers/admin/user.py 查看文件

@@ -207,7 +207,6 @@ class UserPasswordAdminRestController(TIMRestController):
207 207
             tg.redirect(next_url)
208 208
 
209 209
         user.password = new_password1
210
-        user.update_webdav_digest_auth(new_password1)
211 210
         pm.DBSession.flush()
212 211
 
213 212
         tg.flash(_('The password has been changed'), CST.STATUS_OK)

+ 0 - 1
tracim/tracim/controllers/user.py 查看文件

@@ -109,7 +109,6 @@ class UserPasswordRestController(TIMRestController):
109 109
             tg.redirect(redirect_url)
110 110
 
111 111
         current_user.password = new_password1
112
-        current_user.update_webdav_digest_auth(new_password1)
113 112
         pm.DBSession.flush()
114 113
 
115 114
         tg.flash(_('Your password has been changed'))