From 8d7d338f44f6296ddb39f2c4c6d26befd768f9f4 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Thu, 19 Nov 2015 13:58:34 +0000 Subject: [PATCH] Pass the right session ID --- src/SignupStages.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SignupStages.js b/src/SignupStages.js index 3521b4ba39..d49a488ec8 100644 --- a/src/SignupStages.js +++ b/src/SignupStages.js @@ -83,6 +83,7 @@ class RecaptchaStage extends Stage { return; } var self = this; + // FIXME: Tight coupling here and in CaptchaForm.js global.grecaptcha.render('mx_recaptcha', { sitekey: this.publicKey, callback: function(response) { @@ -119,7 +120,7 @@ class EmailIdentityStage extends Stage { "&is_url=" + encodeURIComponent(this.signupInstance.getIdentityServerUrl()) + "&session_id=" + - encodeURIComponent(this.signupInstance.params.sessionId); + encodeURIComponent(this.signupInstance.getServerData().session); return this.client.requestEmailToken( this.signupInstance.email,