Store retrieved sid in the signupInstance of EmailIdentityStage

When registeration is complete, the RTS needs the sid, which was previously only sent to the HS. This update will also store it in the signupInstance so that it can be sent to the RTS.
This commit is contained in:
Luke Barnard 2017-02-14 11:00:40 +00:00
parent 18cba1fe45
commit 6996291f0c

View file

@ -149,6 +149,7 @@ class EmailIdentityStage extends Stage {
nextLink
).then(function(response) {
self.sid = response.sid;
self.signupInstance.setIdSid(self.sid);
return self._completeVerify();
}).then(function(request) {
request.poll_for_success = true;