Skip to content

Node.js based forum software built for the modern web

fix: missing req, closes #10847

Barış Soner Uşaklı489fb3a36f1c
diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js
index 7b8af8e885..10b93e2bf5 100644
--- a/src/controllers/authentication.js
+++ b/src/controllers/authentication.js
@@ -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());