barisusakli 8 years ago
parent 9f8d80e3a4
commit 185b6e5c8e

@ -60,9 +60,9 @@
var meta = require('../meta'); var meta = require('../meta');
var sessionStore = require('connect-redis')(session); var sessionStore = require('connect-redis')(session);
var ttlDays = 1000 * 60 * 60 * 24 * (parseInt(meta.config.loginDays, 10) || 0); var ttlDays = 60 * 60 * 24 * (parseInt(meta.config.loginDays, 10) || 0);
var ttlSeconds = 1000 * (parseInt(meta.config.loginSeconds, 10) || 0); var ttlSeconds = (parseInt(meta.config.loginSeconds, 10) || 0);
var ttl = ttlSeconds || ttlDays || 1209600000; // Default to 14 days var ttl = ttlSeconds || ttlDays || 1209600; // Default to 14 days
module.sessionStore = new sessionStore({ module.sessionStore = new sessionStore({
client: module.client, client: module.client,

Loading…
Cancel
Save