Get email auth sending working (not the link back though)
This commit is contained in:
parent
e800d3d477
commit
f2f5496b78
2 changed files with 8 additions and 2 deletions
|
@ -185,6 +185,12 @@ class Register extends Signup {
|
||||||
if (request.auth) {
|
if (request.auth) {
|
||||||
return self._tryRegister(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;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -119,7 +119,7 @@ class EmailIdentityStage extends Stage {
|
||||||
"&is_url=" +
|
"&is_url=" +
|
||||||
encodeURIComponent(this.signupInstance.getIdentityServerUrl()) +
|
encodeURIComponent(this.signupInstance.getIdentityServerUrl()) +
|
||||||
"&session_id=" +
|
"&session_id=" +
|
||||||
encodeURIComponent(this.signupInstance.getSessionId());
|
encodeURIComponent(this.signupInstance.params.sessionId);
|
||||||
|
|
||||||
return this.client.requestEmailToken(
|
return this.client.requestEmailToken(
|
||||||
this.signupInstance.email,
|
this.signupInstance.email,
|
||||||
|
|
Loading…
Reference in a new issue