make sure we return false if veryfyLogin fails

This commit is contained in:
Dan Mills 2009-01-08 16:55:30 -08:00
parent 81cdb36c28
commit e1662d73d7

View File

@ -474,10 +474,14 @@ WeaveSvc.prototype = {
this._log.debug("Logging in user " + this.username); this._log.debug("Logging in user " + this.username);
yield this.verifyLogin(self.cb, this.username, this.password); try {
yield this.verifyLogin(self.cb, this.username, this.password);
this._loggedIn = true; this._loggedIn = true;
self.done(true); self.done(true);
} catch (e) {
this._loggedIn = false;
self.done(false);
}
}; };
this._localLock( this._localLock(
this._catchAll( this._catchAll(