From 12004962fb54d88abadfb5d6c218f75f8c71f3e7 Mon Sep 17 00:00:00 2001 From: James Allen Date: Wed, 5 Dec 2018 13:01:37 +0100 Subject: [PATCH] Merge pull request #1221 from sharelatex/ew-collabratec-zip-upload-api collabratec zip upload api GitOrigin-RevId: cf93d47112404e9dcbecd723aa806fc213c057f3 --- .../Features/Authentication/AuthenticationController.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/web/app/coffee/Features/Authentication/AuthenticationController.coffee b/services/web/app/coffee/Features/Authentication/AuthenticationController.coffee index 18948fa0df..4821a3f90b 100644 --- a/services/web/app/coffee/Features/Authentication/AuthenticationController.coffee +++ b/services/web/app/coffee/Features/Authentication/AuthenticationController.coffee @@ -185,7 +185,10 @@ module.exports = AuthenticationController = User.findOne { "overleaf.id": body.user_profile.id }, (error, user) -> return next(error) if error? return res.status(401).send({error: "invalid_token"}) unless user? - req.oauth = access_token: body.access_token + req.oauth = + access_token: body.access_token + collabratec_customer_id: body.collabratec_customer_id + user_profile: body.user_profile req.oauth_user = user next()