Fixing email invite link handling (#2956)

Этот коммит содержится в:
Christopher Speller
2016-05-11 08:04:13 -04:00
родитель 720222f3a6
Коммит a12e575877

Просмотреть файл

@@ -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.