mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 12:04:57 +01:00
Try to improve error message on no login method available
This commit is contained in:
parent
391e696bed
commit
19c0a2949b
@ -304,8 +304,8 @@ export class LoginViewModel extends ViewModel<SegmentType, Options> {
|
||||
if (this._loginOptions.password) { this._showPasswordLogin(); }
|
||||
if (this._loginOptions.oidc) { this._showOIDCLogin(); }
|
||||
if (!this._loginOptions.sso && !this._loginOptions.password && !this._loginOptions.oidc) {
|
||||
this._showError("This homeserver supports neither SSO nor password based login flows");
|
||||
}
|
||||
this._showError("This homeserver supports neither SSO nor password based login flows or has a usable OIDC Provider");
|
||||
}
|
||||
}
|
||||
else {
|
||||
this._showError(`Could not query login methods supported by ${this.homeserver}`);
|
||||
|
Loading…
Reference in New Issue
Block a user