Mostly fix 2nd step email registration

- Don't send u/p: null
- Remove unused functions
- Moar logging

Still doesn't work yet though.
This commit is contained in:
Kegan Dougal 2015-11-19 15:19:30 +00:00
parent 7568a3b2d3
commit cc74676718
2 changed files with 25 additions and 28 deletions

View file

@ -69,7 +69,6 @@ class RecaptchaStage extends Stage {
}
this.publicKey = publicKey;
this._attemptRender();
return this.defer.promise;
}
@ -87,7 +86,8 @@ class RecaptchaStage extends Stage {
global.grecaptcha.render('mx_recaptcha', {
sitekey: this.publicKey,
callback: function(response) {
return self.defer.resolve({
console.log("Received captcha response");
self.defer.resolve({
auth: {
type: 'm.login.recaptcha',
response: response