瀏覽代碼

Set req.user

Shane Kilkelly 10 年之前
父節點
當前提交
c959e0c65d
共有 1 個文件被更改,包括 1 次插入 和 0 次删除
  1. 1 0
      services/web/app/coffee/Features/Authentication/AuthenticationController.coffee

+ 1 - 0
services/web/app/coffee/Features/Authentication/AuthenticationController.coffee

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