mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fix session touch
This commit is contained in:
parent
7f24dd6f55
commit
6df569253a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue