specify a brand when registering accounts

This commit is contained in:
Matthew Hodgson 2016-06-02 11:50:00 +01:00
parent 0ef0120227
commit 83fd02bdfa
3 changed files with 9 additions and 1 deletions

View file

@ -51,6 +51,7 @@ class Register extends Signup {
this.username = undefined; // desired
this.email = undefined; // desired
this.password = undefined; // desired
this.brand = undefined; // optional brand to let the HS brand its mail notifs
}
setClientSecret(secret) {
@ -73,6 +74,10 @@ class Register extends Signup {
this.guestAccessToken = token;
}
setBrand(brand) {
this.brand = brand;
}
getStep() {
return this._step;
}
@ -131,7 +136,7 @@ class Register extends Signup {
return MatrixClientPeg.get().register(
this.username, this.password, this.params.sessionId, authDict, bindEmail,
this.guestAccessToken
this.guestAccessToken, this.brand
).then(function(result) {
self.credentials = result;
self.setStep("COMPLETE");