Quellcode durchsuchen

Drops useless WebDAV authentication hash updates

Adrien Panay vor 7 Jahren
Ursprung
Commit
eeac4ebfa2

+ 0 - 2
tracim/tracim/command/user.py Datei anzeigen

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

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

@@ -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'))