Mercurial > eldonilo > lightstring
diff plugins/DIGEST-MD5.js @ 65:2e8fbf3bce7f
ANONYMOUS auth plugin.
author | Sonny Piers <sonny.piers@gmail.com> |
---|---|
date | Wed, 01 Feb 2012 21:23:28 +0100 |
parents | d9f5ae0b6d98 |
children | fa184759fc41 |
line wrap: on
line diff
--- a/plugins/DIGEST-MD5.js +++ b/plugins/DIGEST-MD5.js @@ -39,7 +39,7 @@ Lightstring.plugins['DIGEST-MD5'] = { var that = this; //TODO check if bind supported var bind = - "<iq type='set' id='"+Lightstring.newId('sendiq:')+"' xmlns='jabber:client'>" + + "<iq type='set' id='"+Lightstring.newId('sendiq:')+"'>" + "<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>" + (this.jid.resource? "<resource>" + this.jid.resource + "</resource>": "") + "</bind>" + @@ -51,7 +51,7 @@ Lightstring.plugins['DIGEST-MD5'] = { //Session http://xmpp.org/rfcs/rfc3921.html#session that.jid = new Lightstring.JID(stanza.DOM.textContent); that.send( - "<iq type='set' id='"+Lightstring.newId('sendiq:')+"' xmlns='jabber:client'>" + + "<iq type='set' id='"+Lightstring.newId('sendiq:')+"'>" + "<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>" + "</iq>", function() {