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());