mirror of
https://github.com/nikdoof/pocket-id.git
synced 2025-12-14 15:22:18 +00:00
fix: show error message if error occurs while authorizing new client
This commit is contained in:
@@ -83,16 +83,17 @@
|
|||||||
<SignInWrapper>
|
<SignInWrapper>
|
||||||
<ClientProviderImages {client} {success} error={!!errorMessage} />
|
<ClientProviderImages {client} {success} error={!!errorMessage} />
|
||||||
<h1 class="font-playfair mt-5 text-3xl font-bold sm:text-4xl">Sign in to {client.name}</h1>
|
<h1 class="font-playfair mt-5 text-3xl font-bold sm:text-4xl">Sign in to {client.name}</h1>
|
||||||
{#if !authorizationRequired}
|
|
||||||
<p class="text-muted-foreground mb-10 mt-2">
|
|
||||||
{#if errorMessage}
|
{#if errorMessage}
|
||||||
|
<p class="text-muted-foreground mb-10 mt-2">
|
||||||
{errorMessage}. Please try again.
|
{errorMessage}. Please try again.
|
||||||
{:else}
|
</p>
|
||||||
|
{/if}
|
||||||
|
{#if !authorizationRequired && !errorMessage}
|
||||||
|
<p class="text-muted-foreground mb-10 mt-2">
|
||||||
Do you want to sign in to <b>{client.name}</b> with your
|
Do you want to sign in to <b>{client.name}</b> with your
|
||||||
<b>{$applicationConfigurationStore.appName}</b> account?
|
<b>{$applicationConfigurationStore.appName}</b> account?
|
||||||
{/if}
|
|
||||||
</p>
|
</p>
|
||||||
{:else}
|
{:else if authorizationRequired}
|
||||||
<div transition:slide={{ duration: 300 }}>
|
<div transition:slide={{ duration: 300 }}>
|
||||||
<Card.Root class="mb-10 mt-6">
|
<Card.Root class="mb-10 mt-6">
|
||||||
<Card.Header class="pb-5">
|
<Card.Header class="pb-5">
|
||||||
|
|||||||
Reference in New Issue
Block a user