aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.js')
-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