Commit 1031b9af authored by Philipp Hörist's avatar Philipp Hörist

Register: Handle errors when requesting the register form

parent c1c5d310
Pipeline #5233 passed with stages
in 40 seconds
......@@ -59,8 +59,10 @@ class Register(BaseModule):
def _on_register_form(self, stanza):
query = stanza.getQuery()
if not isResultNode(stanza):
return raise_error(, stanza)
query = stanza.getQuery()
instructions = query.getTagData('instructions') or None
data = RegisterData(instructions=instructions,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment