aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-10-05 12:38:06 -0700
committerAdam Soltys <[email protected]>2022-10-05 12:38:06 -0700
commite98337a5f0d0e1640016b685341264d9e552b4bb (patch)
treef03d56702de5ed69afc352055c8a20c02d62669f /src/components
parentc8a9c7ac93f348df23c49776b576dfe25d09878d (diff)
downloadcoinos-ui-e98337a5f0d0e1640016b685341264d9e552b4bb.tar.gz
coinos-ui-e98337a5f0d0e1640016b685341264d9e552b4bb.zip
handle login/registration errors
Diffstat (limited to 'src/components')
-rw-r--r--src/components/RegisterOrLogin.svelte5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/RegisterOrLogin.svelte b/src/components/RegisterOrLogin.svelte
index de886314..0b954387 100644
--- a/src/components/RegisterOrLogin.svelte
+++ b/src/components/RegisterOrLogin.svelte
@@ -1,4 +1,5 @@
<script>
+ import { fly } from 'svelte/transition';
import { enhance } from '$app/forms';
import { Icon } from '$comp';
import { focus } from '$lib/utils';
@@ -33,7 +34,9 @@
<h1 class="text-2xl font-bold text-center">{$t('login.' + pageID)}</h1>
{#if form?.error}
- Login failed
+ <div class="text-red-600 text-center" in:fly>
+ {form.error}
+ </div>
{/if}
<form class="space-y-5" {action} method="POST" use:enhance>