diff src/plugins/plugin_misc_account.py @ 1044:85c110c0be86

plugins misc_account, misc_register_account: manually delete the sessions when not needed anymore
author souliane <souliane@mailoo.org>
date Wed, 21 May 2014 23:17:51 +0200
parents 9095263011b6
children f25ec9fd7cc4
line wrap: on
line diff
--- a/src/plugins/plugin_misc_account.py	Wed May 21 23:15:01 2014 +0200
+++ b/src/plugins/plugin_misc_account.py	Wed May 21 23:17:51 2014 +0200
@@ -360,6 +360,7 @@
         @profile (str): %(doc_profile)s
         """
         password = self._sessions.profileGet(data['session_id'], profile)['new_password']
+        del self._sessions[data['session_id']]
 
         def passwordChanged(result):
             d = self.host.memory.setParam(C.PROFILE_PASS_PATH[1], password, C.PROFILE_PASS_PATH[0], profile_key=profile)