Skip to content

Node.js based forum software built for the modern web

closes #2179

barisusakli62084a012ee8
diff --git a/src/routes/authentication.js b/src/routes/authentication.js
index f2ceb97859..e8d4517ec1 100644
--- a/src/routes/authentication.js
+++ b/src/routes/authentication.js
@@ -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 {