- 论坛徽章:
- 0
|
Hi All,
I has using Jabberd2 server,the version detail is jabberd 2.1.7,
when I try to register new user, the server response required fields, example:
Client->Server(Query):
<iq id='uid1' type='get'>
<query xmlns='jabber:iq:register'/>
</iq>
Server->Client(RESPONSE):
<iq xmlns='jabber:client' id='uid1' type='result'>
<query xmlns='jabber:iq:register'>
<username/><password/><instructions>Enter a username and password to register with this server.</instructions>
</query>
</iq>
If I want to add new field, such as 'nick' or 'email',How to do it?
Thanks everybody... 
News group response message:
First of all, you should be using jabber :data forms to extend in-band
registration - jabber:iq:register schema is fixed and not extensible.
Secondly - jabberd 2.1 does not support this. 
But then - the whole in-band registration (jabber:iq:register) is frown
and there is a tendency to recommend out of band (jabber b)
registration (via a web page, etc.), and this is supported by jabberd as
of 2.1.9.
--
/\_./o__ Tomasz Sterna
(/^/(_^^' Xiaoka.com
._.(_.)_ XMPP: smoku@xiaoka.com |
|