aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/RegisterOrLogin.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-24 13:34:37 -0700
committerAdam Soltys <[email protected]>2022-09-25 21:34:59 -0700
commit7bfd57b8b249fcf8ab87b52c8a4416d62f3cd1f6 (patch)
treeed85daeb18785e450fc4cb2e67066809cd0a1956 /src/components/RegisterOrLogin.svelte
parente0e4441cfa2b20c3f5f0126a5cf8aeddaed269b6 (diff)
downloadcoinos-ui-7bfd57b8b249fcf8ab87b52c8a4416d62f3cd1f6.tar.gz
coinos-ui-7bfd57b8b249fcf8ab87b52c8a4416d62f3cd1f6.zip
wip
Diffstat (limited to 'src/components/RegisterOrLogin.svelte')
-rw-r--r--src/components/RegisterOrLogin.svelte6
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> -->