Node.js based forum software built for the modern web
feat: add original sessionID to static:user.loggedOut
Barış Soner Uşaklıabe4abb67411
diff --git a/src/controllers/authentication.js b/src/controllers/authentication.jsindex fa288e73db..cd53113016 100644--- a/src/controllers/authentication.js+++ b/src/controllers/authentication.js@@ -501,7 +501,7 @@ authenticationController.logout = function (req, res, next) {db.sortedSetRemove('users:online', uid, next);},function (next) {- plugins.fireHook('static:user.loggedOut', { req: req, res: res, uid: uid }, next);+ plugins.fireHook('static:user.loggedOut', { req: req, res: res, uid: uid, sessionID: sessionID }, next);},async.apply(middleware.autoLocale, req, res),function () {