mirror of https://github.com/calzoneman/sync.git
Minor fix
This commit is contained in:
parent
c44e70893b
commit
fd328d443d
|
@ -43,7 +43,7 @@ function handleLogin(req, res) {
|
||||||
} else {
|
} else {
|
||||||
var auth = user.name + ":" + user.hash;
|
var auth = user.name + ":" + user.hash;
|
||||||
res.cookie("auth", auth, {
|
res.cookie("auth", auth, {
|
||||||
domain: Config.get("http.root-domain"),
|
domain: "." + Config.get("http.root-domain"),
|
||||||
expires: new Date(Date.now() + 7*24*60*60*1000),
|
expires: new Date(Date.now() + 7*24*60*60*1000),
|
||||||
httpOnly: true
|
httpOnly: true
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue