aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-15 16:04:57 -0700
committerAdam Soltys <[email protected]>2026-08-15 16:04:57 -0700
commit36355aa9e6e5ea65a73fc00fb7ea2b0db118962d (patch)
treef857128ec6792635ad3fab20972c2cf9e192839f /src
parenteb2ef578ab9a6e34390091901afcd6a93c703dcf (diff)
downloadcoinosv3-36355aa9e6e5ea65a73fc00fb7ea2b0db118962d.tar.gz
coinosv3-36355aa9e6e5ea65a73fc00fb7ea2b0db118962d.zip
Log out opens the front door: the start page, with saved wallets one Unlock away
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_014tE4U5nEjGTQy8PwYqamfv
Diffstat (limited to 'src')
-rw-r--r--src/app.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/app.js b/src/app.js
index 0bbf857..cc30cee 100644
--- a/src/app.js
+++ b/src/app.js
@@ -4067,7 +4067,12 @@ const ctx = {
hook: (name, ...args) => featureHook(name, ...args),
// full sign-out (distinct from the padlock's lock-in-place): clear the
// session and leave — offering a password if none protects the vault yet
- logout: () => { lock({ offerPassword: true }); },
+ logout: () => {
+ lock({ offerPassword: true });
+ // Logging out means the front door, not the password prompt: land on the
+ // start page (Get started / sign in). Saved wallets stay one Unlock away.
+ if (!ui.pw) { ui.screen = 'unlock'; ui.unlockTab = 'create'; ui.onb = { step: 'welcome' }; render(); }
+ },
// the identity the header avatar currently wears (login > seed key >
// remembered) — profile "mine"-ness must match what the user clicked
shownPubkey: () => (featureHook('nostrLoginIdentity') || {}).pubkey