From abe4abb67411c2d6bd3d185f3e8a3ecc37335c2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 2 Apr 2019 16:23:09 -0400 Subject: [PATCH] feat: add original sessionID to static:user.loggedOut --- 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 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 () {