Hello once again coders, anyone familiar with in-band registration? I just found out about it and decided it was the best way to hook up my app users with jabber ids, without having them go through the headache of obtaining one themselves. Since I'm new to it, this may sound as a silly question. In order to send stanzas to an XMPP server, you need to be connected through an XMPP account right? So I login with my jid to Jack's beautifully created peek console and send the following stanza to the server
Code:
$iq({type: "get", id: "reg1"}).c("query", {xmlns:"jabber:iq:register"})
which is supposed to get the register fields. The server sends back the following stanza
Code:
<iq id='reg1'
type='result'
to='my_jid@miqote.com/my_resource'>
<query xmlns='jabber:iq:register'>
<registered/>
<username>
my_jid
</username>
<password/>
</query>
</iq>
Note that I replaced my real jid with "my_jid"
So the puzzle is, how in the world am I supposed to register a new user if the server recognizes that my stanza is coming from an already registered user? Or is it possible to somehow send stanzas to the server without loging in with an already existing username?