comparison src/plugins/plugin_misc_account.py @ 1212:628e320eab1f

memory: Sessions.newSession can be called with a forced session ID
author souliane <souliane@mailoo.org>
date Sun, 21 Sep 2014 13:10:55 +0200
parents 2d035aaea13b
children 9c17bd37e6e5
comparison
equal deleted inserted replaced
1211:9355f48f979e 1212:628e320eab1f
350 """Ask for a confirmation before changing the XMPP account and SàT profile passwords. 350 """Ask for a confirmation before changing the XMPP account and SàT profile passwords.
351 351
352 @param password (str): the new password 352 @param password (str): the new password
353 @param profile (str): %(doc_profile)s 353 @param profile (str): %(doc_profile)s
354 """ 354 """
355 session_id, dummy = self._sessions.newSession({'new_password': password}, profile) 355 session_id, dummy = self._sessions.newSession({'new_password': password}, profile=profile)
356 form_ui = xml_tools.XMLUI("form", title=D_("Change your password?"), submit_id=self.__change_password_id, session_id=session_id) 356 form_ui = xml_tools.XMLUI("form", title=D_("Change your password?"), submit_id=self.__change_password_id, session_id=session_id)
357 form_ui.addText(D_("Note for advanced users: this will actually change both your SàT profile password AND your XMPP account password.")) 357 form_ui.addText(D_("Note for advanced users: this will actually change both your SàT profile password AND your XMPP account password."))
358 form_ui.addText(D_("Continue with changing the password?")) 358 form_ui.addText(D_("Continue with changing the password?"))
359 return {'xmlui': form_ui.toXml()} 359 return {'xmlui': form_ui.toXml()}
360 360