1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Implement guest account upgrading

This commit is contained in:
Kegan Dougal
2016-01-07 17:23:32 +00:00
parent 458d71a496
commit a3df50f4c3
5 changed files with 55 additions and 11 deletions

View File

@@ -69,6 +69,10 @@ class Register extends Signup {
this.params.idSid = idSid;
}
setGuestAccessToken(token) {
this.guestAccessToken = token;
}
getStep() {
return this._step;
}
@@ -126,7 +130,8 @@ class Register extends Signup {
}
return MatrixClientPeg.get().register(
this.username, this.password, this.params.sessionId, authDict, bindEmail
this.username, this.password, this.params.sessionId, authDict, bindEmail,
this.guestAccessToken
).then(function(result) {
self.credentials = result;
self.setStep("COMPLETE");