mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 01:10:31 +01:00
feat: fix session mismatch errors by clearing cookie on logout (#8338)
* feat: fix session mismatch errors by clearing cookie on logout * feat: remove app.upateHeader ported from 2.0 * feat: handle if user doesn't click button and just refreshes page
This commit is contained in:
committed by
GitHub
parent
938c232377
commit
5781a2dc65
@@ -145,7 +145,7 @@ function setupExpressApp(app) {
|
||||
|
||||
configureBodyParser(app);
|
||||
|
||||
app.use(cookieParser());
|
||||
app.use(cookieParser(nconf.get('secret')));
|
||||
const userAgentMiddleware = useragent.express();
|
||||
app.use(function userAgent(req, res, next) {
|
||||
userAgentMiddleware(req, res, next);
|
||||
|
||||
Reference in New Issue
Block a user