mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46: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);
|
db.sortedSetRemove('users:online', uid, next);
|
||||||
},
|
},
|
||||||
function (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),
|
async.apply(middleware.autoLocale, req, res),
|
||||||
function () {
|
function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user