Openfire additional user's fields

I built a web chat based on openfire + strophe.js and I want to use phone number as a login for user. I didn't find something about how to add additional fields for openfire (for example checkbox for verification telephone number).

How can I do that ?

Maybe using $ajax + php + additional data base?

Upvotes: 2

Views: 392

Answers (2)

Shoaib Ahmad Gondal
Shoaib Ahmad Gondal

Reputation: 646

For XMPP Login, you need username/password, So you can make the phonenumber as username.
And if you will do that, then definitely you will have to validate phone number yourself. You can use https://github.com/googlei18n/libphonenumber from Google for this.

Upvotes: 0

beaver
beaver

Reputation: 17647

You can add additional fields to user info on a XMPP server (Openfire too) with some Strophe plugins:

Upvotes: 2

Related Questions