v1.18.x
barisusakli 10 years ago
parent 30b2f55ebc
commit 62084a012e

@ -50,8 +50,8 @@
}
// Alter user cookie depending on passed-in option
if (req.body.remember === 'true') {
var duration = 1000*60*60*24*parseInt(meta.configs.loginDays || 14, 10);
if (req.body.remember === 'on') {
var duration = 1000*60*60*24*parseInt(meta.config.loginDays || 14, 10);
req.session.cookie.maxAge = duration;
req.session.cookie.expires = new Date(Date.now() + duration);
} else {

Loading…
Cancel
Save