mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
tests for #5600
This commit is contained in:
@@ -116,9 +116,7 @@
|
||||
var meta = require('../meta');
|
||||
var sessionStore;
|
||||
|
||||
var ttlDays = 60 * 60 * 24 * (parseInt(meta.config.loginDays, 10) || 0);
|
||||
var ttlSeconds = (parseInt(meta.config.loginSeconds, 10) || 0);
|
||||
var ttl = ttlSeconds || ttlDays || 1209600; // Default to 14 days in seconds
|
||||
var ttl = meta.getSessionTTLSeconds();
|
||||
|
||||
if (nconf.get('redis')) {
|
||||
sessionStore = require('connect-redis')(session);
|
||||
|
||||
Reference in New Issue
Block a user