summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webapp/client/client.jsx10
1 files changed, 8 insertions, 2 deletions
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.