diff options
| author | Adam Soltys <[email protected]> | 2022-10-05 12:38:06 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-10-05 12:38:06 -0700 |
| commit | c126830e9188182c46ced319b2295c545cf7547e (patch) | |
| tree | f03d56702de5ed69afc352055c8a20c02d62669f /src/components | |
| parent | 4e19fee6b1f28f6c638fbe91e985426075b04864 (diff) | |
| download | coinos-ui-c126830e9188182c46ced319b2295c545cf7547e.tar.gz coinos-ui-c126830e9188182c46ced319b2295c545cf7547e.zip | |
handle login/registration errors
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/RegisterOrLogin.svelte | 5 |
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> |
