memory: Sessions.newSession can be called with a forced session ID
This commit is contained in:
parent
a67c8094f5
commit
830b6d8ef6
1 changed files with 9 additions and 7 deletions
|
|
@ -70,7 +70,7 @@ class RegisterAccount(object):
|
|||
|
||||
session_data['user'], host, resource = jid.parse(session_data['JabberID'])
|
||||
session_data['server'] = session_data[C.FORCE_SERVER_PARAM] or host
|
||||
session_id, dummy = self._sessions.newSession(session_data, profile)
|
||||
session_id, dummy = self._sessions.newSession(session_data, profile=profile)
|
||||
form_ui = xml_tools.XMLUI("form", title=D_("Register new account"), submit_id=self.__register_account_id, session_id=session_id)
|
||||
form_ui.addText(D_("Do you want to register a new XMPP account [%(user)s] on server %(server)s ?") % {'user': session_data['user'], 'server': session_data['server']})
|
||||
return {'xmlui': form_ui.toXml()}
|
||||
|
|
|
|||
Loading…
Reference in a new issue