vault email recovery: state that the mailbox alone is enough

The account password resets by email, so mailbox control = sign-in + one-time
code + the enrollment code U. Say so in security.md and stop the one-time-code
email from implying the vault stays safe if someone else reads the mailbox.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Anthony Ettinger 2026-11-30 15:22:29 +00:00
parent 8528634e09
commit a01cc0fcf4
2 changed files with 9 additions and 6 deletions

View file

@ -394,7 +394,7 @@ export async function startRecovery(user, ctx = {}, now = Date.now()) {
`Someone (hopefully you) is recovering your LogicSRC personal vault through email recovery.\n\n` +
`One-time code: ${code}\n\nIt expires in 15 minutes and works once.\n\n` +
`If this was not you, someone can sign in to your LogicSRC account: change your password now, and turn email recovery off (Settings, or \`logicsrc vault recovery disable\`). ` +
`Without the recovery code from your enrollment email they still cannot open the vault.`,
`They also need the recovery code from your enrollment email, so if anyone else can read this mailbox, secure your email account first.`,
);
if (!sent) {
await run(`UPDATE vault_recovery_codes SET used_at = ? WHERE id = ?`, [now, codeId]);