diff --git a/docs/user/settings.md b/docs/user/settings.md index 6c0389f..332ab4e 100644 --- a/docs/user/settings.md +++ b/docs/user/settings.md @@ -68,8 +68,8 @@ Two rotations live here: - **Master password** - the passphrase that unlocks your encrypted config blob in this browser. Re-encrypts locally; does not touch Supabase. -- **Supabase password** - the password you use to sign in to your - Supabase project. Nak re-verifies your current password before +- **Account password** - the password you use to sign in to your + Supabase account. Nak re-verifies your current password before updating, then calls Supabase to set the new one. Both require the current password and enforce an 8-character diff --git a/src/screens/Settings.svelte b/src/screens/Settings.svelte index a1360b8..ea18a6c 100644 --- a/src/screens/Settings.svelte +++ b/src/screens/Settings.svelte @@ -123,16 +123,16 @@ | 'security' | 'about'; const GROUPS: { id: Group; label: string }[] = [ - { id: 'keys', label: 'API keys' }, { id: 'ai', label: 'AI' }, { id: 'journal', label: 'Journal' }, { id: 'wiki', label: 'Wiki' }, { id: 'appearance', label: 'Appearance' }, { id: 'usage', label: 'Usage' }, { id: 'security', label: 'Security' }, + { id: 'keys', label: 'API keys' }, { id: 'about', label: 'About' }, ]; - let group = $state('keys'); + let group = $state('ai'); // --- Keys pane --- let supabaseUrl = $state(app.config?.supabaseUrl ?? ''); @@ -1134,7 +1134,7 @@ authPwError = null; authPwInfo = null; if (!authPwCurrent) { - authPwError = 'Enter your current Supabase password.'; + authPwError = 'Enter your current account password.'; return; } // Supabase enforces a 6-character minimum by default. Bump to 8 to @@ -1155,7 +1155,7 @@ authPwBusy = true; try { await app.supabase.changeAuthPassword(authPwCurrent, authPwNew); - authPwInfo = 'Supabase password changed.'; + authPwInfo = 'Account password changed.'; authPwCurrent = ''; authPwNew = ''; authPwConfirm = ''; @@ -1900,31 +1900,31 @@ -

Change Supabase password

+

Change account password

- Rotate the password you use to sign in to your Supabase project. + Rotate the password you use to sign in to your Supabase account. We re-verify your current password before updating, so a stolen unlocked tab can't quietly rotate you out of your own account.

- +
- +
- +
{#if authPwError}

{authPwError}

{/if} {#if authPwInfo}

{authPwInfo}

{/if} - +
{:else if group === 'about'}