From 62084a012ee85bb8a28e9d8f97df3543314ccfef Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 29 Sep 2014 19:28:21 -0400 Subject: [PATCH] closes #2179 --- src/routes/authentication.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {