From 39e403d00f3870f9e960427653a1d9697da27a6f Mon Sep 17 00:00:00 2001 From: Kyle Mendell Date: Wed, 12 Feb 2025 09:29:08 -0600 Subject: [PATCH] feat: add warning for only having one passkey configured (#220) Co-authored-by: Elias Schneider --- .../src/lib/components/ui/alert/alert.svelte | 34 ++++++++++++++++--- .../src/routes/settings/account/+page.svelte | 13 ++++++- 2 files changed, 42 insertions(+), 5 deletions(-) diff --git a/frontend/src/lib/components/ui/alert/alert.svelte b/frontend/src/lib/components/ui/alert/alert.svelte index 93877a3..6fc0c1f 100644 --- a/frontend/src/lib/components/ui/alert/alert.svelte +++ b/frontend/src/lib/components/ui/alert/alert.svelte @@ -1,17 +1,43 @@ - +{#if isVisible} + +{/if} diff --git a/frontend/src/routes/settings/account/+page.svelte b/frontend/src/routes/settings/account/+page.svelte index 6050343..db7bd35 100644 --- a/frontend/src/routes/settings/account/+page.svelte +++ b/frontend/src/routes/settings/account/+page.svelte @@ -62,9 +62,20 @@ >Please add a passkey to prevent losing access to your account. +{:else if passkeys.length == 1} + + + Single Passkey Configured + It is recommended to add more than one passkey to avoid loosing access to your account. + {/if} -
+
Account Details