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.
pull/21833/head
Luke Barnard 2017-02-14 11:00:40 +00:00
parent 18cba1fe45
commit 6996291f0c
1 changed files with 1 additions and 0 deletions

View File

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