Merge pull request #305 from zoff-music/feature/persistent-admin

Added expires option for mongo_configs
This commit is contained in:
Kasper Rynning-Tønnesen
2018-02-14 14:00:38 +01:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ app.use(session({
host: mongo_db_cred.host, host: mongo_db_cred.host,
port: 27017, port: 27017,
collection: 'sessions', collection: 'sessions',
expire: 86400 expire: mongo_db_cred.expire
}) })
})); // session secret })); // session secret
app.use(passport.initialize()); app.use(passport.initialize());

View File

@@ -4,6 +4,7 @@ var mongo_config = {
users: 'users', users: 'users',
host: 'localhost', host: 'localhost',
port: '27017', port: '27017',
expire: 86400,
}; };
module.exports = mongo_config; module.exports = mongo_config;