From 2b115e75c6f43116cd480a6f2f3888fd44705d0f Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 29 Sep 2014 19:29:13 -0400 Subject: [PATCH] fix login days value --- src/middleware/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware/index.js b/src/middleware/index.js index c21dd0cbbe..e868ee4476 100644 --- a/src/middleware/index.js +++ b/src/middleware/index.js @@ -69,7 +69,7 @@ module.exports = function(app, data) { app.use(cookieParser()); var cookie = { - maxAge: 1000 * 60 * 60 * 24 * parseInt(meta.configs.loginDays || 14, 10) + maxAge: 1000 * 60 * 60 * 24 * parseInt(meta.config.loginDays || 14, 10) }; if(meta.config.cookieDomain) { cookie.domain = meta.config.cookieDomain;