Set req.user

This commit is contained in:
Shane Kilkelly 2016-09-22 13:54:13 +01:00
parent 6df569253a
commit c959e0c65d

View file

@ -108,6 +108,7 @@ module.exports = AuthenticationController =
if !AuthenticationController.isUserLoggedIn(req) if !AuthenticationController.isUserLoggedIn(req)
AuthenticationController._redirectToLoginOrRegisterPage(req, res) AuthenticationController._redirectToLoginOrRegisterPage(req, res)
else else
req.user = AuthenticationController.getSessionUser(req)
next() next()
return doRequest return doRequest