mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: missing req, closes #10847
This commit is contained in:
@@ -471,7 +471,7 @@ authenticationController.logout = async function (req, res, next) {
|
||||
|
||||
try {
|
||||
await user.auth.revokeSession(sessionID, uid);
|
||||
await logoutAsync();
|
||||
await logoutAsync(req);
|
||||
|
||||
await destroyAsync(req);
|
||||
res.clearCookie(nconf.get('sessionKey'), meta.configs.cookie.get());
|
||||
|
||||
Reference in New Issue
Block a user