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,15 +193,15 @@ async function startSSO (provider: SsoProviderDescription) {
<Fa class="ms-2" fw icon={faArrowRight} /> <Fa class="ms-2" fw icon={faArrowRight} />
</AsyncButton> </AsyncButton>
{#if authState === ApiAuthState.Failed} {/if}
<Alert color="danger">Incorrect credentials</Alert> {#if authState === ApiAuthState.Failed}
{/if} <Alert color="danger">Incorrect credentials</Alert>
{#if serverErrorMessage} {/if}
<Alert color="danger">{serverErrorMessage}</Alert> {#if serverErrorMessage}
{/if} <Alert color="danger">{serverErrorMessage}</Alert>
{#if error} {/if}
<Alert color="danger">{error}</Alert> {#if error}
{/if} <Alert color="danger">{error}</Alert>
{/if} {/if}
</form> </form>