From 76c7dbd4f1653ae726a6f74a824e8cdc8e3b8d09 Mon Sep 17 00:00:00 2001 From: Dan Mills Date: Thu, 26 Jun 2008 12:22:19 -0700 Subject: [PATCH] return http status code from dav's checkLogin --- services/sync/modules/dav.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/services/sync/modules/dav.js b/services/sync/modules/dav.js index ee06cac87e2e..b6513afec5c0 100644 --- a/services/sync/modules/dav.js +++ b/services/sync/modules/dav.js @@ -319,14 +319,7 @@ DAVCollection.prototype = { let resp = yield; this._log.debug("checkLogin got response status " + resp.status); - // XXX would be nice if 404 == invalid username, 401 == invalid password. - let retmsg = ""; - if (resp.status == 401) - retmsg = "invalid username or password"; - else if (resp.status < 200 || resp.status >= 300) - retmsg = "server error"; - - self.done(retmsg); + self.done(resp.status); }, // Locking