xmpp.js: Clearer logging to show calculated auth token

Mon, 01 Mar 2010 15:50:19 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 01 Mar 2010 15:50:19 +0000
changeset 17
701b83c8b687
parent 16
74a24eb1fb44
child 18
06abd01c13cb

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>");
 	},
 	

mercurial