USer
USer

Reputation: 1

How to add a recovery email in ejabberd api based

While registering a new account, the user needs to provide username and password on API based registration.

How can we add one more field to add user's email while registering new account on API?

Upvotes: 0

Views: 53

Answers (1)

Badlop
Badlop

Reputation: 4120

The bad news is that only username and password is required, and possible to set.

Other user details can be set in the user vCard, once the user is registered. For example, using ejabberdctl to register and later set email in vcard, and getting it:

$ ejabberdctl register user1 localhost mypass
$ ejabberdctl set_vcard2 user1 localhost EMAIL USERID [email protected]
$ ejabberdctl get_vcard2 user1 localhost EMAIL USERID
[email protected]

Upvotes: 0

Related Questions