From 489fb3a36f1c8bd8c42d82f7799577013a1b9c1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 18 Aug 2022 09:27:37 -0400 Subject: [PATCH] fix: missing req, closes #10847 --- src/controllers/authentication.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());