mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 01:01:53 +00: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)
|
||||
req.sessionStore.generate(req)
|
||||
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
|
||||
req.session.user = req.session.passport.user
|
||||
req.session.save (err) ->
|
||||
|
|
Loading…
Reference in a new issue