mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +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
@@ -93,7 +93,6 @@ apiController.loadConfig = async function (req) {
|
||||
config.topicSearchEnabled = settings.topicSearchEnabled || false;
|
||||
config.bootswatchSkin = (meta.config.disableCustomUserSkins !== 1 && settings.bootswatchSkin && settings.bootswatchSkin !== '') ? settings.bootswatchSkin : '';
|
||||
config = await plugins.fireHook('filter:config.get', config);
|
||||
req.res.locals.config = config;
|
||||
return config;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user