diff 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
line wrap: on
line diff
--- a/src/plugins/plugin_misc_account.py	Sun Sep 21 13:06:53 2014 +0200
+++ b/src/plugins/plugin_misc_account.py	Sun Sep 21 13:10:55 2014 +0200
@@ -352,7 +352,7 @@
         @param password (str): the new password
         @param profile (str): %(doc_profile)s
         """
-        session_id, dummy = self._sessions.newSession({'new_password': password}, profile)
+        session_id, dummy = self._sessions.newSession({'new_password': password}, profile=profile)
         form_ui = xml_tools.XMLUI("form", title=D_("Change your password?"), submit_id=self.__change_password_id, session_id=session_id)
         form_ui.addText(D_("Note for advanced users: this will actually change both your SàT profile password AND your XMPP account password."))
         form_ui.addText(D_("Continue with changing the password?"))