[jdev] How to add new field in Jabberd2 register ?
James Li
jabberd2 at gmail.com
Fri Oct 12 08:56:43 CDT 2007
Tomasz, Thanks a lot :)
On 10/11/07, Tomasz Sterna <tomek at xiaoka.com> wrote:
> Dnia 11-10-2007, Cz o godzinie 10:16 +0800, James Li pisze:
> > <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?
>
> First of all, you should be using jabber:x: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:x:oob)
> registration (via a web page, etc.), and this is supported by jabberd as
> of 2.1.9.
>
> --
> /\_./o__ Tomasz Sterna
> (/^/(_^^' Xiaoka.com
> ._.(_.)_ XMPP: smoku at xiaoka.com
>
>
More information about the JDev
mailing list