mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
Give sso homeserver storage key a better name
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
98f8f04c74
commit
f8b0ef052f
@ -45,7 +45,7 @@ export class SSOLoginViewModel extends ViewModel{
|
||||
if (!this._loginToken) {
|
||||
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);
|
||||
this._loadViewModelSubscription = this.disposeTracked(this._loadViewModelSubscription);
|
||||
if (this._loadViewModel) {
|
||||
@ -72,7 +72,7 @@ export class SSOLoginViewModel extends ViewModel{
|
||||
}
|
||||
|
||||
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()}`;
|
||||
this.platform.openUrl(link);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user