Skip to content

Commit

Permalink
fixed login errors not being displayed properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Jul 7, 2023
1 parent a38fd2b commit 4fe4bfe
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions warpgate-web/src/gateway/Login.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,15 @@ async function startSSO (provider: SsoProviderDescription) {
<Fa class="ms-2" fw icon={faArrowRight} />
</AsyncButton>

{#if authState === ApiAuthState.Failed}
<Alert color="danger">Incorrect credentials</Alert>
{/if}
{#if serverErrorMessage}
<Alert color="danger">{serverErrorMessage}</Alert>
{/if}
{#if error}
<Alert color="danger">{error}</Alert>
{/if}
{/if}
{#if authState === ApiAuthState.Failed}
<Alert color="danger">Incorrect credentials</Alert>
{/if}
{#if serverErrorMessage}
<Alert color="danger">{serverErrorMessage}</Alert>
{/if}
{#if error}
<Alert color="danger">{error}</Alert>
{/if}
</form>

Expand Down

0 comments on commit 4fe4bfe

Please sign in to comment.