fix: show error message if error occurs while authorizing new client

This commit is contained in:
Elias Schneider
2024-09-06 08:58:23 +02:00
parent c6f83a581a
commit 8038a111dd

View File

@@ -83,16 +83,17 @@
<SignInWrapper>
<ClientProviderImages {client} {success} error={!!errorMessage} />
<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}
<p class="text-muted-foreground mb-10 mt-2">
{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
<b>{$applicationConfigurationStore.appName}</b> account?
{/if}
</p>
{:else}
{:else if authorizationRequired}
<div transition:slide={{ duration: 300 }}>
<Card.Root class="mb-10 mt-6">
<Card.Header class="pb-5">