forked from mystiq/hydrogen-web
Give sso homeserver storage key a better name
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
98f8f04c74
commit
f8b0ef052f
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ export class SSOLoginViewModel extends ViewModel{
|
||||||
if (!this._loginToken) {
|
if (!this._loginToken) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const homeserver = await this.platform.settingsStorage.getString("homeserver");
|
const homeserver = await this.platform.settingsStorage.getString("sso_ongoing_login_homeserver");
|
||||||
const loginOptions = await this._sessionContainer.queryLogin(homeserver);
|
const loginOptions = await this._sessionContainer.queryLogin(homeserver);
|
||||||
this._loadViewModelSubscription = this.disposeTracked(this._loadViewModelSubscription);
|
this._loadViewModelSubscription = this.disposeTracked(this._loadViewModelSubscription);
|
||||||
if (this._loadViewModel) {
|
if (this._loadViewModel) {
|
||||||
|
@ -72,7 +72,7 @@ export class SSOLoginViewModel extends ViewModel{
|
||||||
}
|
}
|
||||||
|
|
||||||
async startSSOLogin() {
|
async startSSOLogin() {
|
||||||
await this.platform.settingsStorage.setString("homeserver", this._homeserver);
|
await this.platform.settingsStorage.setString("sso_ongoing_login_homeserver", this._homeserver);
|
||||||
const link = `${this._homeserver}/_matrix/client/r0/login/sso/redirect?redirectUrl=${this.urlCreator.createSSOCallbackURL()}`;
|
const link = `${this._homeserver}/_matrix/client/r0/login/sso/redirect?redirectUrl=${this.urlCreator.createSSOCallbackURL()}`;
|
||||||
this.platform.openUrl(link);
|
this.platform.openUrl(link);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue