From 1b5f8d47aa09b1990ebba1f3184a36fe95dc3299 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Thu, 19 Feb 2015 20:33:31 -0600 Subject: [PATCH] Fix --- lib/web/auth.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/web/auth.js b/lib/web/auth.js index 8154d104..7aeb7c91 100644 --- a/lib/web/auth.js +++ b/lib/web/auth.js @@ -70,6 +70,8 @@ function handleLogin(req, res) { } if (req.hostname.indexOf(Config.get("http.root-domain")) >= 0) { + // Prevent non-root cookie from screwing things up + res.clearCookie("auth"); res.cookie("auth", auth, { domain: Config.get("http.root-domain-dotted"), expires: expiration,