Skip to content

Node.js based forum software built for the modern web

pass in req,res to action:user.loggedOut

barisusakli399c89eeed2c
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 {