From c95d925d567f5b67b49414d0e8ad122b31a26ae0 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Thu, 13 Sep 2018 12:31:59 +0100 Subject: [PATCH] When regenerating session, don't copy the `__tmp` key --- .../Features/Authentication/AuthenticationController.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/coffee/Features/Authentication/AuthenticationController.coffee b/services/web/app/coffee/Features/Authentication/AuthenticationController.coffee index f8d90756b2..d301ddabbc 100644 --- a/services/web/app/coffee/Features/Authentication/AuthenticationController.coffee +++ b/services/web/app/coffee/Features/Authentication/AuthenticationController.coffee @@ -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) ->