1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-16 11:56:12 +00:00

feat: add warning for only having one passkey configured (#220)

Co-authored-by: Elias Schneider <login@eliasschneider.com>
This commit is contained in:
Kyle Mendell
2025-02-12 09:29:08 -06:00
committed by GitHub
parent 4e858420e9
commit 39e403d00f
2 changed files with 42 additions and 5 deletions

View File

@@ -62,9 +62,20 @@
>Please add a passkey to prevent losing access to your account.</Alert.Description
>
</Alert.Root>
{:else if passkeys.length == 1}
<Alert.Root variant="warning" dismissibleId="single-passkey">
<LucideAlertTriangle class="size-4" />
<Alert.Title>Single Passkey Configured</Alert.Title>
<Alert.Description
>It is recommended to add more than one passkey to avoid loosing access to your account.</Alert.Description
>
</Alert.Root>
{/if}
<fieldset disabled={!$appConfigStore.allowOwnAccountEdit || (!!account.ldapId && $appConfigStore.ldapEnabled)}>
<fieldset
disabled={!$appConfigStore.allowOwnAccountEdit ||
(!!account.ldapId && $appConfigStore.ldapEnabled)}
>
<Card.Root>
<Card.Header>
<Card.Title>Account Details</Card.Title>