Get email auth sending working (not the link back though)

This commit is contained in:
Kegan Dougal 2015-11-19 11:41:32 +00:00
parent e800d3d477
commit f2f5496b78
2 changed files with 8 additions and 2 deletions

View file

@ -185,6 +185,12 @@ class Register extends Signup {
if (request.auth) {
return self._tryRegister(request.auth);
}
else {
// never resolve the promise chain. This is for things like email auth
// which display a "check your email" message and relies on the
// link in the email to actually register you.
return q.defer().promise;
}
});
}

View file

@ -119,7 +119,7 @@ class EmailIdentityStage extends Stage {
"&is_url=" +
encodeURIComponent(this.signupInstance.getIdentityServerUrl()) +
"&session_id=" +
encodeURIComponent(this.signupInstance.getSessionId());
encodeURIComponent(this.signupInstance.params.sessionId);
return this.client.requestEmailToken(
this.signupInstance.email,