You wishlists:
{#each wishlists as wishlist}
diff --git a/src/routes/(auth)/totp/+page.svelte b/src/routes/(auth)/totp/+page.svelte
index fbf29ed..fb103b5 100644
--- a/src/routes/(auth)/totp/+page.svelte
+++ b/src/routes/(auth)/totp/+page.svelte
@@ -10,8 +10,9 @@
import { Button } from '$components/ui/button';
import * as Alert from "$components/ui/alert";
import { boredState } from '$lib/stores/boredState.js';
+ import PinInput from '$components/pin-input.svelte';
- export let data;
+ const { data } = $props();
const superTotpForm = superForm(data.form, {
onSubmit: () => boredState.update((n) => ({ ...n, loading: true })),
@@ -33,6 +34,8 @@
delayMs: 0,
});
+ let showRecoveryCode = $state(false);
+
const { form: totpForm, enhance } = superTotpForm;
@@ -45,17 +48,27 @@
- Please enter your two factor code
+ Please enter your {showRecoveryCode ? 'recovery code' : 'TOTP code'}
- TOTP Code
-
+ {#if showRecoveryCode}
+ Recovery Code
+
+ {:else}
+ TOTP Code
+
+ {/if}
Submit
+ {#if !showRecoveryCode}
+
+ {:else}
+
+ {/if}