feat(accounts): reset a forgotten password by email
The sign-in page links to /forgot-password. refs emails a link that works one time and expires in 1 hour. The answer is the same for every address, so the page does not show who has an account. A new password ends the person's other sessions and signs them in.
12 files changed · +177 −5
README.md+1 −1
apps/backend/contract/handles.ts+4 −0
apps/backend/handles/gate.ts+35 −1
apps/backend/mail.ts+12 −0
apps/backend/repos.ts+1 −1
apps/backend/test/accounts.test.ts+14 −2
apps/frontend/docs/quickstart.md+2 −0
apps/frontend/routes.ts+2 −0
apps/frontend/routes/forgot-password.tsx+51 −0
apps/frontend/routes/login.tsx+3 −0
apps/frontend/routes/reset-password.tsx+45 −0
migrations/0038_password_resets.sql+7 −0