From 0a0734413943b1fff27d8f4ccf07587e207e2189 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Tue, 22 Oct 2024 20:41:35 +0200 Subject: [PATCH] fix: improve text for initial admin account setup --- frontend/src/routes/login/[token]/+page.svelte | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/frontend/src/routes/login/[token]/+page.svelte b/frontend/src/routes/login/[token]/+page.svelte index c501661..c531bb8 100644 --- a/frontend/src/routes/login/[token]/+page.svelte +++ b/frontend/src/routes/login/[token]/+page.svelte @@ -33,11 +33,19 @@ -

One Time Access

+

+ {data.token === 'setup' ? `${$appConfigStore.appName} Setup` : 'One Time Access'} +

- You've been granted one-time access to your {$appConfigStore.appName} account. Please note that if - you continue, this link will become invalid. To avoid this, make sure to add a passkey. Otherwise, - you'll need to request a new link. + {#if data.token === 'setup'} + You're about to sign in to the initial admin account. Anyone with this link can access the + account until a passkey is added. Please set up a passkey as soon as possible to prevent + unauthorized access. + {:else} + You've been granted one-time access to your {$appConfigStore.appName} account. Please note that + if you continue, this link will become invalid. To avoid this, make sure to add a passkey. Otherwise, + you'll need to request a new link. + {/if}