plugin XEP-0077: added changePassword and removeRegistration methods
This commit is contained in:
parent
03d8930672
commit
1c64f98989
1 changed files with 28 additions and 13 deletions
|
|
@ -80,7 +80,6 @@ class RegisterAccount(object):
|
|||
|
||||
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 @@ class RegisterAccount(object):
|
|||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue