Browse Source

Drops useless WebDAV authentication hash updates

Adrien Panay 7 years ago
parent
commit
eeac4ebfa2

+ 0 - 2
tracim/tracim/command/user.py View File

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

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

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

+ 0 - 1
tracim/tracim/controllers/user.py View File

109
             tg.redirect(redirect_url)
109
             tg.redirect(redirect_url)
110
 
110
 
111
         current_user.password = new_password1
111
         current_user.password = new_password1
112
-        current_user.update_webdav_digest_auth(new_password1)
113
         pm.DBSession.flush()
112
         pm.DBSession.flush()
114
 
113
 
115
         tg.flash(_('Your password has been changed'))
114
         tg.flash(_('Your password has been changed'))