feat: add original sessionID to static:user.loggedOut

v1.18.x
Barış Soner Uşaklı 6 years ago committed by GitHub
parent 8cc1864aa7
commit abe4abb674
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save