mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
server returns a json object for user root now, modify checkLogin() accordingly
This commit is contained in:
parent
5b9b4696f2
commit
a3802a68ed
@ -421,8 +421,7 @@ WeaveSvc.prototype = {
|
||||
this._log.debug("Verifying login for user " + user);
|
||||
let res = new Resource(this.baseURL + user);
|
||||
yield res.get(self.cb);
|
||||
if (res.data != "\"1\"")
|
||||
throw "Login failed";
|
||||
Svc.Json.decode(res.data); // will throw if not json
|
||||
self.done(true);
|
||||
};
|
||||
this._notify("verify-login", "", fn).async(this, onComplete);
|
||||
|
Loading…
Reference in New Issue
Block a user