From c693e84a46cae6a5c9daa1f45d09a5a0061a80cb Mon Sep 17 00:00:00 2001 From: calzoneman Date: Tue, 19 Aug 2014 00:25:36 -0500 Subject: [PATCH] Update bcrypt and fix a deprecated reference in auth --- lib/web/auth.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",