fix 'logging in' debug string so it prints the actual username being used

This commit is contained in:
Dan Mills 2008-12-01 14:17:44 -08:00
parent cb119538ba
commit 73077fa65b

View File

@ -453,8 +453,6 @@ WeaveSvc.prototype = {
_login: function WeaveSvc__login(username, password, passphrase) {
let self = yield;
this._log.debug("Logging in user " + this.username);
if (typeof(username) != 'undefined')
this.username = username;
if (typeof(password) != 'undefined')
@ -467,6 +465,8 @@ WeaveSvc.prototype = {
if (!this.password)
throw "No password given or found in password manager";
this._log.debug("Logging in user " + this.username);
yield this._verifyLogin.async(this, self.cb, this.username, this.password);
this._loggedIn = true;