mirror of https://github.com/calzoneman/sync.git
Fix
This commit is contained in:
parent
df62ee8d58
commit
1b5f8d47aa
|
@ -70,6 +70,8 @@ function handleLogin(req, res) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.hostname.indexOf(Config.get("http.root-domain")) >= 0) {
|
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, {
|
res.cookie("auth", auth, {
|
||||||
domain: Config.get("http.root-domain-dotted"),
|
domain: Config.get("http.root-domain-dotted"),
|
||||||
expires: expiration,
|
expires: expiration,
|
||||||
|
|
Loading…
Reference in New Issue