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)
AuthenticationController._redirectToLoginOrRegisterPage(req, res)
else
req.user = AuthenticationController.getSessionUser(req)
next()
return doRequest