From a6f7b335a5d6b9d101c792475a26437b4b252f73 Mon Sep 17 00:00:00 2001 From: Local Dev Date: Sun, 4 Oct 2026 20:23:43 +0200 Subject: [PATCH 1/5] Vault: PIN setup steps, 6-8 digit PINs, save and offer logins, keep sign-ins The PIN could only be six digits and was set from three bare inputs; the unlock prompt sat at the top of the page; and the password manager only filled when you found the key chip, never offered to save, and "Clear cookies on quit" signed you out of every site, including the ones whose login the vault already holds. - PINs are 6 to 8 digits. The PIN record stores its length so pads draw the right number of dots and submit on the last digit; a PIN of the wrong length is refused without a strike, so an older Aegis pad cannot burn the count against an 8-digit PIN. - Settings sets a PIN in steps: master password, choose the PIN on a pad (6/7/8), repeat it, done. The locked vault opens Theseus's own prompt, which is now centred, with the PIN pad or the master password field. - After a sign-in or sign-up form is sent and the page moves on, Theseus offers to save (or update) the login, with an optional "ask for my PIN or password before filling it". Focusing a login form offers the saved logins under it; on a locked vault it offers to unlock first. A failed login (the password field still showing) gets no offer. - "Keep sign-ins for sites in your vault" (on): the quit clear spares the cookies and site storage of sites with a saved login. Their hostnames are kept sealed with the OS keystore so the list is readable at quit while the vault is locked. Verified end to end on a scratch profile: signed in, restarted, still signed in; another site's cookie was cleared. --- approval.html | 4 +- dev/signin-sites.test.cjs | 49 +++++++ dev/vault-pin.test.cjs | 66 +++++++++ home-preload.js | 73 ++++++++++ lib/signin-sites.cjs | 83 +++++++++++ lib/vault-pin.cjs | 26 +++- main.js | 287 ++++++++++++++++++++++++++++++++++++-- pw-fill.html | 12 +- settings-preload.js | 3 + settings.html | 245 +++++++++++++++++++++++++------- unlock.html | 16 ++- 11 files changed, 783 insertions(+), 81 deletions(-) create mode 100644 dev/signin-sites.test.cjs create mode 100644 dev/vault-pin.test.cjs create mode 100644 lib/signin-sites.cjs diff --git a/approval.html b/approval.html index f0529e26..164619cc 100644 --- a/approval.html +++ b/approval.html @@ -75,7 +75,9 @@ const hasCancel = actions.some((a) => a.id === "cancel"); document.body.innerHTML = `