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;