Mercurial > libervia-backend
diff src/plugins/plugin_misc_register_account.py @ 2175:75002ac33801
plugin XEP-0077: added changePassword and removeRegistration methods
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 09 Mar 2017 00:06:13 +0100 |
parents | 545a1261ac3b |
children | 8b37a62336c3 |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_register_account.py Thu Mar 09 00:06:13 2017 +0100 +++ b/src/plugins/plugin_misc_register_account.py Thu Mar 09 00:06:13 2017 +0100 @@ -80,7 +80,6 @@ def _registerConfirmation(self, data, profile): """Save the related parameters and proceed the registration.""" - client = self.host.getClient(profile) session_data = self._sessions.profileGet(data['session_id'], profile) self.host.memory.setParam("JabberID", session_data["JabberID"], "Connection", profile_key=profile) @@ -88,7 +87,7 @@ self.host.memory.setParam(C.FORCE_SERVER_PARAM, session_data[C.FORCE_SERVER_PARAM], "Connection", profile_key=profile) self.host.memory.setParam(C.FORCE_PORT_PARAM, session_data[C.FORCE_PORT_PARAM], "Connection", profile_key=profile) - d = self._registerNewAccount(client, jid.JID(session_data['JabberID']), session_data["Password"], None, session_data['server']) + d = self._registerNewAccount(jid.JID(session_data['JabberID']), session_data["Password"], None, session_data['server']) del self._sessions[data['session_id']] return d