mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 02:16:29 +02:00
closed #201
This commit is contained in:
@@ -70,7 +70,10 @@ var express = require('express'),
|
||||
ttl: 60*60*24*14
|
||||
}),
|
||||
secret: nconf.get('secret'),
|
||||
key: 'express.sid'
|
||||
key: 'express.sid',
|
||||
cookie: {
|
||||
maxAge: 60*60*24*30 // 30 days
|
||||
}
|
||||
}));
|
||||
app.use(express.csrf());
|
||||
app.use(function(req, res, next) {
|
||||
|
||||
Reference in New Issue
Block a user