Explorar el Código

Fix session touch

Shane Kilkelly hace 10 años
padre
commit
6df569253a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      services/web/app/coffee/infrastructure/Server.coffee

+ 2 - 2
services/web/app/coffee/infrastructure/Server.coffee

@@ -109,8 +109,8 @@ passport.deserializeUser(AuthenticationController.deserializeUser)
 # Measure expiry from last request, not last login
 webRouter.use (req, res, next) ->
 	req.session.touch()
-	if req?.session?.user?
-		UserSessionsManager.touch(req.user, (err)->)
+	if AuthenticationController.isUserLoggedIn(req)
+		UserSessionsManager.touch(AuthenticationController.getSessionUser(req), (err)->)
 	next()
 
 webRouter.use ReferalConnect.use