user2914635
user2914635

Reputation: 267

Change a user's password in ejabberd over xmpp

Is it possible for the admin to change a user's password through XMPP in ejabberd? After I logged in the admin account, I issued the following stanza:

<iq type="set" id="change6075" from="[email protected]">
 <query xmlns="jabber:iq:register">
  <username>user1</username>
  <password>code1</password>
 </query>
</iq>

But it doesn't work, how can I modify a user's password over XMPP using the admin account?

Upvotes: 3

Views: 2533

Answers (1)

Hemant Sharma
Hemant Sharma

Reputation: 534

You can change the user password with the help of mod_admin_extra command:

$ ejabberdctl change-password User Host newPassword

Upvotes: 3

Related Questions