Fix IP Bans
This commit is contained in:
parent
f75b6b754d
commit
db5b407635
3 changed files with 9 additions and 5 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue