server returns a json object for user root now, modify checkLogin() accordingly

This commit is contained in:
Dan Mills 2009-02-02 11:44:07 -08:00
parent 5b9b4696f2
commit a3802a68ed

View File

@ -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);