Fix IP Bans

This commit is contained in:
calzoneman 2014-03-02 22:00:24 -06:00
parent f75b6b754d
commit db5b407635
3 changed files with 9 additions and 5 deletions

View file

@ -42,7 +42,11 @@ function handleLogin(req, res) {
});
} else {
var auth = user.name + ":" + user.hash;
console.log(Config.get("http.root-domain-dotted"));
res.cookie("auth", auth, {
expires: new Date(Date.now() + 7*24*60*60*1000),
httpOnly: true
});
res.cookie("auth", auth, {
domain: Config.get("http.root-domain-dotted"),
expires: new Date(Date.now() + 7*24*60*60*1000),