Project

General

Profile

how to create account with extra info

lin jiafu
Added over 1 year ago

i want to create an account,but the method jaxmpp.getModule(InBandRegistrationModule.class).register(username, password, email,AsyncCallback) only hava the username,password,email 3 attribute,if i want to add another attribute nickname,which method can i use and how can i get all this user info after i register success, thanks!


Replies (4)

(1)
Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam over 1 year ago

Setting a nickname during account registration is not part of the protocol, so it cannot be done during registration call. Once account is successfully registered, you can make another call to set a user nickname.

Added by lin jiafu over 1 year ago

you can make another call to set a user nickname? would you tell me how to do this ,thanks!

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam over 1 year ago

Account registration is not binded with a nickname. A nickname for a user may be set later in more than one way, see XEP-0172: User Nickname for more details.

Some XMPP clients also use nicknames specified in XMPP vCards, see XEP-0054: vcard-temp and XEP-0292: vCard4 Over XMPP for more details.

(1)

Added by lin jiafu over 1 year ago

ok. thanks for your reply

    (1-4/4)