From 5d198491d5ff7dbebc8e09c1fd79a6c61bb30bb2 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 2 May 2018 13:13:15 -0400 Subject: [PATCH] closes #6483 --- src/controllers/authentication.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js index 643b898843..5bf4889498 100644 --- a/src/controllers/authentication.js +++ b/src/controllers/authentication.js @@ -357,6 +357,9 @@ authenticationController.onSuccessfulLogin = function (req, uid, callback) { // Force session check for all connected socket.io clients with the same session id sockets.in('sess_' + req.sessionID).emit('checkSession', uid); + // Trigger registration interstitial check + req.session.registration = req.session.registration || {}; + plugins.fireHook('action:user.loggedIn', { uid: uid, req: req }); next(); },