From a12e575877d0fcfc90a1f3fd3a7fc7878a12a757 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Wed, 11 May 2016 08:04:13 -0400 Subject: Fixing email invite link handling (#2956) --- webapp/client/client.jsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'webapp') diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx index c81c5a1d7..12cf21f5c 100644 --- a/webapp/client/client.jsx +++ b/webapp/client/client.jsx @@ -542,8 +542,14 @@ export default class Client { createUserWithInvite = (user, data, emailHash, inviteId, success, error) => { var url = `${this.getUsersRoute()}/create`; - if (data || emailHash || inviteId) { - url += '?d=' + encodeURIComponent(data) + '&h=' + encodeURIComponent(emailHash) + '&iid=' + encodeURIComponent(inviteId); + url += '?d=' + encodeURIComponent(data); + + if (emailHash) { + url += '&h=' + encodeURIComponent(emailHash); + } + + if (inviteId) { + url += '&iid=' + encodeURIComponent(inviteId); } request. -- cgit v1.2.3-1-g7c22