mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 01:56:12 +01:00
fix: #8085, fix cookie name
This commit is contained in:
@@ -419,7 +419,7 @@ authenticationController.logout = async function (req, res, next) {
|
|||||||
req.logout();
|
req.logout();
|
||||||
|
|
||||||
await destroyAsync(req);
|
await destroyAsync(req);
|
||||||
res.clearCookie('express.sid', {
|
res.clearCookie(nconf.get('sessionKey'), {
|
||||||
path: nconf.get('relative_path'),
|
path: nconf.get('relative_path'),
|
||||||
});
|
});
|
||||||
req.uid = 0;
|
req.uid = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user