pass in req,res to action:user.loggedOut

v1.18.x
barisusakli 10 years ago
parent 1c973b7bf3
commit 399c89eeed

@ -262,7 +262,7 @@ authenticationController.logout = function(req, res, next) {
}
req.logout();
plugins.fireHook('action:user.loggedOut', req.user.uid);
plugins.fireHook('action:user.loggedOut', {req: req, res: res, uid: req.user.uid});
res.status(200).send('');
});
} else {

Loading…
Cancel
Save