Commit 410fa7d5 authored by Philipp Hörist's avatar Philipp Hörist

Register: Convert fake form to register fields on submit

parent 8bc83974
Pipeline #5225 passed with stages
in 33 seconds
......@@ -79,6 +79,15 @@ class Register(BaseModule):
def submit_register_form(self, form):
iq = Iq('set', NS_REGISTER, to=self._client.domain)
if form.is_fake_form():
query = iq.getTag('query')
for field in form.iter_fields():
if field.var == 'fakeform':
query.addChild(field.var, payload=[field.value])
return iq
return iq
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