fix: missing req, closes #10847

This commit is contained in:
Barış Soner Uşaklı
2022-08-18 09:27:37 -04:00
parent 72e7b9f7d8
commit 489fb3a36f

View File

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