plugin misc_account: delete the profile session after the registration is done
This commit is contained in:
parent
94d36a7d3e
commit
603f2e5760
1 changed files with 4 additions and 5 deletions
|
|
@ -189,11 +189,10 @@ class MiscAccount(object):
|
||||||
d.addCallback(lambda ignore: None)
|
d.addCallback(lambda ignore: None)
|
||||||
|
|
||||||
def setParams(dummy):
|
def setParams(dummy):
|
||||||
#FIXME: values must be in a config file instead of hardcoded
|
jid_s = "%s@%s/%s" % (profile, self.getConfig('new_account_domain'), self.getConfig('new_account_resource'))
|
||||||
self.host.memory.setParam("JabberID", "%s@%s/%s" % (profile, self.getConfig('new_account_domain'), self.getConfig('new_account_resource')),
|
self.host.memory.setParam("JabberID", jid_s, "Connection", profile_key=profile)
|
||||||
"Connection", profile_key=profile)
|
d = self.host.memory.setParam("Password", password, "Connection", profile_key=profile)
|
||||||
self.host.memory.setParam("Password", password,
|
d.addCallback(lambda dummy: self.host.memory.auth_sessions.profileDelUnique(profile))
|
||||||
"Connection", profile_key=profile)
|
|
||||||
|
|
||||||
def removeProfile(failure):
|
def removeProfile(failure):
|
||||||
self.host.memory.asyncDeleteProfile(profile)
|
self.host.memory.asyncDeleteProfile(profile)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue