diff options
| author | Adam Soltys <[email protected]> | 2022-09-24 13:34:37 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-25 21:34:59 -0700 |
| commit | 7bfd57b8b249fcf8ab87b52c8a4416d62f3cd1f6 (patch) | |
| tree | ed85daeb18785e450fc4cb2e67066809cd0a1956 /src/components | |
| parent | e0e4441cfa2b20c3f5f0126a5cf8aeddaed269b6 (diff) | |
| download | coinos-ui-7bfd57b8b249fcf8ab87b52c8a4416d62f3cd1f6.tar.gz coinos-ui-7bfd57b8b249fcf8ab87b52c8a4416d62f3cd1f6.zip | |
wip
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/RegisterOrLogin.svelte | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/RegisterOrLogin.svelte b/src/components/RegisterOrLogin.svelte index b615d42a..1ec73b64 100644 --- a/src/components/RegisterOrLogin.svelte +++ b/src/components/RegisterOrLogin.svelte @@ -1,7 +1,7 @@ <script> import { Icon } from '$comp'; import { post, failure } from '$lib/utils'; - import { user, token } from '$lib/store'; + import { redirect, user, token } from '$lib/store'; import { auth } from '$lib/socket'; import { goto } from '$app/navigation'; import { t } from '$lib/translations'; @@ -35,6 +35,10 @@ <h1 class="text-2xl font-bold text-center">{$t('login.' + pageID)}</h1> <form class="space-y-5" {action} method="POST"> + {#if $redirect} + <input type="hidden" name="redirect" value={$redirect} /> + {/if} + <!-- {#if pageID === 'register'} --> <!-- <div> --> <!-- <label for="email" class="font-semibold">{$t('login.email')}</label> --> |
