Try to improve error message on no login method available

This commit is contained in:
Hugh Nimmo-Smith 2022-07-25 09:00:16 +01:00 committed by Quentin Gliech
parent 391e696bed
commit 19c0a2949b
No known key found for this signature in database
GPG Key ID: 22D62B84552719FC

View File

@ -304,8 +304,8 @@ export class LoginViewModel extends ViewModel<SegmentType, Options> {
if (this._loginOptions.password) { this._showPasswordLogin(); } if (this._loginOptions.password) { this._showPasswordLogin(); }
if (this._loginOptions.oidc) { this._showOIDCLogin(); } if (this._loginOptions.oidc) { this._showOIDCLogin(); }
if (!this._loginOptions.sso && !this._loginOptions.password && !this._loginOptions.oidc) { 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 { else {
this._showError(`Could not query login methods supported by ${this.homeserver}`); this._showError(`Could not query login methods supported by ${this.homeserver}`);