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
parent b48e6b3fb6
commit 385b9cc713

View File

@ -249,7 +249,7 @@ export class LoginViewModel extends ViewModel {
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 {