mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
tests for #5600
This commit is contained in:
@@ -166,9 +166,7 @@ function setupFavicon(app) {
|
||||
}
|
||||
|
||||
function setupCookie() {
|
||||
var ttlDays = 1000 * 60 * 60 * 24 * (parseInt(meta.config.loginDays, 10) || 0);
|
||||
var ttlSeconds = 1000 * (parseInt(meta.config.loginSeconds, 10) || 0);
|
||||
var ttl = ttlSeconds || ttlDays || 1209600000; // Default to 14 days
|
||||
var ttl = meta.getSessionTTLSeconds() * 1000;
|
||||
|
||||
var cookie = {
|
||||
maxAge: ttl,
|
||||
|
||||
Reference in New Issue
Block a user