From 399c89eeed2c6aa439bafde9ebaa731810470bfc Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 20 Jul 2015 12:22:09 -0400 Subject: [PATCH] pass in req,res to action: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 907bdcff07..28a4617867 100644 --- a/src/controllers/authentication.js +++ b/src/controllers/authentication.js @@ -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 {