diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-08-25 14:24:45 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-08-25 14:24:45 -0400 |
| commit | 124a698130f39992a1b47dcc8f32ef30c61a00eb (patch) | |
| tree | ce37d2bebb8a7975cd060a313f211f1cbe8be17e /server/lib/api/collaborator.js | |
| parent | 099dfd16940c62e931bf01e7f62b7a45f2b8c654 (diff) | |
stub in collaborator ui
Diffstat (limited to 'server/lib/api/collaborator.js')
| -rw-r--r-- | server/lib/api/collaborator.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/api/collaborator.js b/server/lib/api/collaborator.js index 4b55f09..f39022f 100644 --- a/server/lib/api/collaborator.js +++ b/server/lib/api/collaborator.js @@ -54,9 +54,9 @@ var collaborator = { return res.json({ error: "can't find project" }) } var data = util.cleanQuery(req.body) - delete data.user_id - + data.email = util.sanitize( data.email ) data.project_id = req.project._id + delete data.user_id Collaborator.makeNonce(function(nonce){ data.nonce = nonce |
