From a5ff626228b35ef587f6b9493998184e3e8354fe Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 4 Nov 2026 14:29:35 -0700 Subject: settings: let users delete their account 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 --- src/locales/en.json | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'src/locales/en.json') diff --git a/src/locales/en.json b/src/locales/en.json index 39dc613c..f3e66bed 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -294,10 +294,10 @@ "placeholder": "Enter an address, invoice or username" }, "settings": { - "connectSquare": "Connect to Square", - "revokeSquare": "Revoke Square Connection", - "confirmAutoWithdrawal": "Confirm auto withdrawal settings", - "confirmAutoWithdrawalDesc": "Your auto withdrawals have been disabled. Please double check your destination address before re-enabling them or remove the address to dismiss this message.", + "connectSquare": "Connect to Square", + "revokeSquare": "Revoke Square Connection", + "confirmAutoWithdrawal": "Confirm auto withdrawal settings", + "confirmAutoWithdrawalDesc": "Your auto withdrawals have been disabled. Please double check your destination address before re-enabling them or remove the address to dismiss this message.", "tip": "Default tip", "tipDesc": "Default tip percentage when auto-paying trusted users", "nostr": "Nostr", @@ -362,7 +362,7 @@ "yourUsername": "Your username is:", "yourPassword": "Your password is:", "welcome": "Welcome!", - "continueSettingUp": "Account setup", + "continueSettingUp": "Account setup", "clickBelow": "Click below to finish setting up your account", "about": "About", "aboutPlaceholder": "A little something about you or your business address and hours", @@ -406,7 +406,13 @@ "disablePIN": "Disable PIN", "publishNip5": "Publish nostr identity", "nip5a": "Use", - "nip5b": "as your publicly verified nostr address" + "nip5b": "as your publicly verified nostr address", + "deleteAccount": "Delete account", + "deleteAccountDescription": "Permanently delete your account and all of its data.", + "deleteAccountWarning": "This permanently deletes your account, your payment history, invoices, sub-accounts, contacts and connected apps. Your username and lightning address will stop working. This cannot be undone.", + "deleteAccountBalance": "Withdraw your balance first. Accounts holding more than 10,000 sats cannot be deleted.", + "deleteAccountConfirm": "Type your username to confirm", + "deleteAccountButton": "Delete my account forever" }, "support": { "fillForm": "Fill out this form or email us directly at", @@ -421,7 +427,7 @@ } }, "payments": { - "custom": "Custom", + "custom": "Custom", "trustUser": "Send and enable auto-pay", "gift": "Gift all funds", "giftLink": "Gift link", -- cgit v1.2.3