mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 06:03:03 +00:00
Merge pull request #1221 from sharelatex/ew-collabratec-zip-upload-api
collabratec zip upload api GitOrigin-RevId: cf93d47112404e9dcbecd723aa806fc213c057f3
This commit is contained in:
parent
e603afe106
commit
12004962fb
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue