[JDEV] newbie doubt on registration

DJ Adams dj.adams at pobox.com
Mon Sep 17 14:23:29 CDT 2001

On Wed, Sep 12, 2001 at 02:27:36PM +0530, shankar wrote:
> Hi,
> I'm implementing yet another Jabber Client and have a doubt with the
> registration part.
> After a user logs in, can he create a new account with a different username
> or should this be attempted before he logs in? Is this the case where the
> server responds with a <registered/> tag ?

There are two 'modes' where jabber:iq:register can be used with the 
JSM. The first, where the user isn't logged on (no session), is
used to create a user.  The second, where the user is logged on
(session exists), is used to modify the details of that logged-on
user (name, email address, etc - things inside the jabber:iq:register
namespace definition).

So you can 'register' user details in both modes, but they have 
different effects. If you want to register more than one user in 
one go, do multiple 'mode 1' registrations without logging on.

(emerging from the cellar slowly but surely)

More information about the JDev mailing list