diff --git a/lib/web/auth.js b/lib/web/auth.js index 210efde2..939badd1 100644 --- a/lib/web/auth.js +++ b/lib/web/auth.js @@ -201,7 +201,7 @@ function handleLogout(req, res) { ref = ""; } - var host = req.host; + var host = req.hostname; if (host.indexOf(Config.get("http.root-domain")) !== -1) { res.clearCookie("auth", { domain: Config.get("http.root-domain-dotted") }); res.clearCookie("rank", { domain: Config.get("http.root-domain-dotted") }); diff --git a/package.json b/package.json index b1333a2c..385a9520 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "url": "http://github.com/calzoneman/sync" }, "dependencies": { - "bcrypt": "~0.7.7", + "bcrypt": "^0.8.0", "body-parser": "^1.6.5", "cookie": "~0.1.0", "cookie-parser": "^1.3.2",