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
|
# Measure expiry from last request, not last login
|
||||||
webRouter.use (req, res, next) ->
|
webRouter.use (req, res, next) ->
|
||||||
req.session.touch()
|
req.session.touch()
|
||||||
if req?.session?.user?
|
if AuthenticationController.isUserLoggedIn(req)
|
||||||
UserSessionsManager.touch(req.user, (err)->)
|
UserSessionsManager.touch(AuthenticationController.getSessionUser(req), (err)->)
|
||||||
next()
|
next()
|
||||||
|
|
||||||
webRouter.use ReferalConnect.use
|
webRouter.use ReferalConnect.use
|
||||||
|
|
Loading…
Reference in a new issue