mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +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);
|
||||
|
||||
yield this.verifyLogin(self.cb, this.username, this.password);
|
||||
|
||||
this._loggedIn = true;
|
||||
self.done(true);
|
||||
try {
|
||||
yield this.verifyLogin(self.cb, this.username, this.password);
|
||||
this._loggedIn = true;
|
||||
self.done(true);
|
||||
} catch (e) {
|
||||
this._loggedIn = false;
|
||||
self.done(false);
|
||||
}
|
||||
};
|
||||
this._localLock(
|
||||
this._catchAll(
|
||||
|
Loading…
Reference in New Issue
Block a user