mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
When regenerating session, don't copy the __tmp
key
This commit is contained in:
parent
c9e3418049
commit
c95d925d56
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ module.exports = AuthenticationController =
|
||||||
return callback(err)
|
return callback(err)
|
||||||
req.sessionStore.generate(req)
|
req.sessionStore.generate(req)
|
||||||
for key, value of oldSession
|
for key, value of oldSession
|
||||||
req.session[key] = value
|
req.session[key] = value unless key == '__tmp'
|
||||||
# copy to the old `session.user` location, for backward-comptability
|
# copy to the old `session.user` location, for backward-comptability
|
||||||
req.session.user = req.session.passport.user
|
req.session.user = req.session.passport.user
|
||||||
req.session.save (err) ->
|
req.session.save (err) ->
|
||||||
|
|
Loading…
Reference in a new issue