Mon, 01 Mar 2010 15:50:19 +0000
xmpp.js: Clearer logging to show calculated auth token
xmpp.js | file | annotate | diff | comparison | revisions |
--- a/xmpp.js Wed Feb 24 22:26:09 2010 -0800 +++ b/xmpp.js Mon Mar 01 15:50:19 2010 +0000 @@ -224,8 +224,10 @@ this.debug("STREAM: opened."); this._setStatus(xmpp.Status.AUTHENTICATING); var handshake = sha1.hex(attr.id + this.password); + this.debug("Calculated authentication token " + handshake + + " from stream id '" + attr.id + + "' and password '" + this.password + "'"); this.debug("Sending authentication token..."); - this.debug("with id: '"+attr.id+"' and pass: '"+this.password+"'") this.send("<handshake>"+handshake+"</handshake>"); },