diff options
| author | Adam Soltys <[email protected]> | 2026-11-04 14:29:35 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-11-04 14:38:48 -0700 |
| commit | a5ff626228b35ef587f6b9493998184e3e8354fe (patch) | |
| tree | f15d2726fbd391bbd3c4a3a1ca2826ff6c6ac2bd /src/routes/(app)/settings/security | |
| parent | 976473a781f1bcda7ba02fee9db122e163243e2b (diff) | |
| download | coinos-ui-a5ff626228b35ef587f6b9493998184e3e8354fe.tar.gz coinos-ui-a5ff626228b35ef587f6b9493998184e3e8354fe.zip | |
A Delete account entry on the security tab leads to /settings/delete,
which warns what's lost, asks for the username (and PIN when set) and
calls the server's POST /delete, then logs out. The page resets to the
(app) layout so its form isn't nested in the settings save form.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/routes/(app)/settings/security')
| -rw-r--r-- | src/routes/(app)/settings/security/+page.svelte | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/routes/(app)/settings/security/+page.svelte b/src/routes/(app)/settings/security/+page.svelte index b774d919..b8c71aa6 100644 --- a/src/routes/(app)/settings/security/+page.svelte +++ b/src/routes/(app)/settings/security/+page.svelte @@ -288,3 +288,14 @@ </button> </a> </div> + +<div> + <span class="font-bold mb-1">{$t("user.settings.deleteAccount")}</span> + <p class="text-secondary mb-4"> + {$t("user.settings.deleteAccountDescription")} + </p> + <a href="/settings/delete" class="btn btn-outline btn-error"> + <iconify-icon noobserver icon="ph:trash-bold" width="32"></iconify-icon> + {$t("user.settings.deleteAccount")} + </a> +</div> |
