summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-05-11 08:04:13 -0400
committerChristopher Speller <crspeller@gmail.com>2016-05-11 08:04:13 -0400
commita12e575877d0fcfc90a1f3fd3a7fc7878a12a757 (patch)
treeab14845f1749f11010ea8f4654f0e33e289d5015
parent720222f3a65fbe0de53aec84730af5ba37794c42 (diff)
downloadchat-a12e575877d0fcfc90a1f3fd3a7fc7878a12a757.tar.gz
chat-a12e575877d0fcfc90a1f3fd3a7fc7878a12a757.tar.bz2
chat-a12e575877d0fcfc90a1f3fd3a7fc7878a12a757.zip
Fixing email invite link handling (#2956)
-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.