What is the right xml format to change user password
i would like to use http api to change users' passwords, but it seems I do not use the right xml format to do this.
I send it to the server via http api:
<command> <xmlns>http://jabber.org/protocol/commands</xmlns> <node>http://jabber.org/protocol/admin#change-user-password</node> <x xmlns=\"jabber:x:data\" type='submit\"> <field type=\"hidden\" var=\"FORM_TYPE\"> <value>http://jabber.org/protocol/admin</value> </field> <field var=\"accountjid\"> <value>email@example.com</value> </field> <field var=\"password\"> <value>V3r0n4</value> </field> </x> </command>
But instead of getting the "completed" response from the server I always get back the "Change User Password Form" (2nd step in the process according to XEP-0133, chapter 4.7).
Could someone to help me figue out what is the right xml format to do the trick?
Added by Wojciech Kapcia almost 3 years ago
You can send GET request which will return you form that needs to be filled out. As you can see in https://projects.tigase.org/projects/tigase-http-api/wiki/Usage_examples#Executing-example-ad-hoc-command your example doesn't match required format - it doesn't match one-to-one to the stanza that you send over XMPP connection!