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