feat(auth): recover a password with a code sent by email #1

Merged
jselesan merged 1 commits from feat/password-recovery into main 2026-10-29 13:14:52 +00:00
Owner

Enable BetterAuth's emailOTP plugin for password resets: a 6-digit code,
valid for 10 minutes with 3 attempts, stored hashed in verifications
(no migration). The code goes out through the existing Resend mailer with
a new Spanish template, and other sessions are revoked after the reset.

The web app gets a two-step /forgot-password route (request the code,
then set the new password) linked from sign-in. Unknown emails get the
same responses as known ones so the form doesn't reveal accounts.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

Enable BetterAuth's emailOTP plugin for password resets: a 6-digit code, valid for 10 minutes with 3 attempts, stored hashed in `verifications` (no migration). The code goes out through the existing Resend mailer with a new Spanish template, and other sessions are revoked after the reset. The web app gets a two-step /forgot-password route (request the code, then set the new password) linked from sign-in. Unknown emails get the same responses as known ones so the form doesn't reveal accounts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jselesan added 1 commit 2026-10-29 13:14:46 +00:00
Enable BetterAuth's emailOTP plugin for password resets: a 6-digit code,
valid for 10 minutes with 3 attempts, stored hashed in `verifications`
(no migration). The code goes out through the existing Resend mailer with
a new Spanish template, and other sessions are revoked after the reset.

The web app gets a two-step /forgot-password route (request the code,
then set the new password) linked from sign-in. Unknown emails get the
same responses as known ones so the form doesn't reveal accounts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jselesan merged commit 01769314cb into main 2026-10-29 13:14:52 +00:00
jselesan deleted branch feat/password-recovery 2026-10-29 13:14:52 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jselesan/superlist#1
No description provided.