fixed login errors not being displayed properly

This commit is contained in:
Eugene Pankov 2023-07-07 20:39:23 +02:00
parent a38fd2bbb1
commit 4fe4bfe18e
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4

View file

@ -193,6 +193,7 @@ async function startSSO (provider: SsoProviderDescription) {
<Fa class="ms-2" fw icon={faArrowRight} />
</AsyncButton>
{/if}
{#if authState === ApiAuthState.Failed}
<Alert color="danger">Incorrect credentials</Alert>
{/if}
@ -202,7 +203,6 @@ async function startSSO (provider: SsoProviderDescription) {
{#if error}
<Alert color="danger">{error}</Alert>
{/if}
{/if}
</form>
{#await ssoProvidersPromise then ssoProviders}