mirror of
https://github.com/warp-tech/warpgate.git
synced 2024-09-20 06:46:17 +08:00
fixed login errors not being displayed properly
This commit is contained in:
parent
a38fd2bbb1
commit
4fe4bfe18e
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue