plugins misc_account, misc_register_account: manually delete the sessions when not needed anymore
This commit is contained in:
parent
8be7416569
commit
ae45889d50
1 changed files with 5 additions and 2 deletions
|
|
@ -84,7 +84,9 @@ class RegisterAccount(object):
|
|||
self.host.memory.setParam("Port", session_data["Port"], "Connection", profile_key=profile)
|
||||
|
||||
user = jid.parse(session_data['JabberID'])[0]
|
||||
return self._registerNewAccount(user, session_data["Password"], None, session_data["Server"], profile_key=profile)
|
||||
d = self._registerNewAccount(user, session_data["Password"], None, session_data["Server"], profile_key=profile)
|
||||
del self._sessions[data['session_id']]
|
||||
return d
|
||||
|
||||
def _registerNewAccount(self, user, password, email, host, port=5222, profile_key=C.PROF_KEY_NONE):
|
||||
"""Connect to a server and create a new account using in-band registration.
|
||||
|
|
|
|||
Loading…
Reference in a new issue