mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat: add original sessionID to static:user.loggedOut
This commit is contained in:
committed by
GitHub
parent
8cc1864aa7
commit
abe4abb674
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user