fix: bug where loginSeconds setting was ignored for local login

v1.18.x
Julian Lam 4 years ago
parent dd6082a081
commit f806befd2f

@ -274,7 +274,7 @@ function continueLogin(strategy, req, res, next) {
// Alter user cookie depending on passed-in option
if (req.body.remember === 'on') {
const duration = 1000 * 60 * 60 * 24 * meta.config.loginDays;
const duration = meta.getSessionTTLSeconds() * 1000;
req.session.cookie.maxAge = duration;
req.session.cookie.expires = new Date(Date.now() + duration);
} else {

Loading…
Cancel
Save