From 414c2a8bd9a0b4f8d39c08ce021e2ca5edc5bbcf Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sat, 18 Jul 2015 14:06:51 -0400 Subject: [PATCH] added action:user.loggedOut --- src/controllers/authentication.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js index 795692cc46..907bdcff07 100644 --- a/src/controllers/authentication.js +++ b/src/controllers/authentication.js @@ -261,6 +261,8 @@ authenticationController.logout = function(req, res, next) { return next(err); } req.logout(); + + plugins.fireHook('action:user.loggedOut', req.user.uid); res.status(200).send(''); }); } else {