From 124a698130f39992a1b47dcc8f32ef30c61a00eb Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 25 Aug 2014 14:24:45 -0400 Subject: stub in collaborator ui --- server/lib/api/collaborator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/lib/api/collaborator.js') 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 -- cgit v1.2.3-70-g09d2