mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
make sure we return false if veryfyLogin fails
This commit is contained in:
parent
81cdb36c28
commit
e1662d73d7
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user