diff --git a/app.js b/app.js index 88d3f37..60826b6 100644 --- a/app.js +++ b/app.js @@ -34,7 +34,7 @@ app.use(session({ saveUninitialized: true, // secret: 'ILoveYiJia', // 建议使用 128 个字符的随机字符串 cookie: { - maxAge: 30 * 24 * 60 * 60 * 1000, // 一个月 + maxAge: 1 * 24 * 60 * 60 * 1000, // 一天 }, store: new mongoStore({ url: 'mongodb://localhost/mybookmarks' diff --git a/public/views/login.html b/public/views/login.html index 0524933..ab4a416 100644 --- a/public/views/login.html +++ b/public/views/login.html @@ -18,7 +18,7 @@ -
+