Change login timeout
This commit is contained in:
parent
8313e7b006
commit
63055c51a2
3 changed files with 15 additions and 6 deletions
|
|
@ -39,7 +39,7 @@ function handleLogin(req, res) {
|
|||
});
|
||||
} else {
|
||||
res.cookie("auth", user.name + ":" + user.hash, {
|
||||
expires: new Date(Date.now() + 60*60*1000),
|
||||
expires: new Date(Date.now() + 7*24*60*60*1000),
|
||||
httpOnly: true
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -36,10 +36,7 @@ function sendJade(res, view, locals) {
|
|||
});
|
||||
cache[view] = fn;
|
||||
}
|
||||
var start = Date.now();
|
||||
var html = cache[view](merge(locals));
|
||||
var end = Date.now();
|
||||
console.log(view + " " + (end - start) + "ms");
|
||||
res.send(html);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue