Explorar el Código

Merge pull request #1221 from sharelatex/ew-collabratec-zip-upload-api

collabratec zip upload api

GitOrigin-RevId: cf93d47112404e9dcbecd723aa806fc213c057f3
James Allen hace 7 años
padre
commit
12004962fb

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