Mercurial > libervia-backend
comparison src/plugins/plugin_misc_register_account.py @ 1212:628e320eab1f
memory: Sessions.newSession can be called with a forced session ID
author | souliane <souliane@mailoo.org> |
---|---|
date | Sun, 21 Sep 2014 13:10:55 +0200 |
parents | 8e0072754413 |
children | 069ad98b360d |
comparison
equal
deleted
inserted
replaced
1211:9355f48f979e | 1212:628e320eab1f |
---|---|
68 form_ui.addText(D_("No user JID or password given: can't register new account.")) | 68 form_ui.addText(D_("No user JID or password given: can't register new account.")) |
69 return {'xmlui': form_ui.toXml()} | 69 return {'xmlui': form_ui.toXml()} |
70 | 70 |
71 session_data['user'], host, resource = jid.parse(session_data['JabberID']) | 71 session_data['user'], host, resource = jid.parse(session_data['JabberID']) |
72 session_data['server'] = session_data[C.FORCE_SERVER_PARAM] or host | 72 session_data['server'] = session_data[C.FORCE_SERVER_PARAM] or host |
73 session_id, dummy = self._sessions.newSession(session_data, profile) | 73 session_id, dummy = self._sessions.newSession(session_data, profile=profile) |
74 form_ui = xml_tools.XMLUI("form", title=D_("Register new account"), submit_id=self.__register_account_id, session_id=session_id) | 74 form_ui = xml_tools.XMLUI("form", title=D_("Register new account"), submit_id=self.__register_account_id, session_id=session_id) |
75 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']}) | 75 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']}) |
76 return {'xmlui': form_ui.toXml()} | 76 return {'xmlui': form_ui.toXml()} |
77 | 77 |
78 def _registerConfirmation(self, data, profile): | 78 def _registerConfirmation(self, data, profile): |