Browse Source

When regenerating session, don't copy the `__tmp` key

Shane Kilkelly 8 years ago
parent
commit
c95d925d56

+ 1 - 1
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) ->