Skip to content

feat(user): add email reset request DB layer and service logic (in progress)#34

Open
devinhadley wants to merge 2 commits into
mainfrom
5-change-email
Open

feat(user): add email reset request DB layer and service logic (in progress)#34
devinhadley wants to merge 2 commits into
mainfrom
5-change-email

Conversation

@devinhadley

Copy link
Copy Markdown
Owner

Adds the email_reset_requests relation (SHA-256 token, user_id, pending new_email) plus CreateEmailResetRequest/ConsumeEmailResetRequest/UpdateEmail queries, and implements CreateEmailResetRequest/ResetEmailFromResetRequest in the user service, mirroring the existing password-reset flow. Also generalizes the tiered auth-attempt rate-limit query (CountTieredAuthAttempts) so it can be reused across actions.

devinhadley and others added 2 commits July 5, 2026 16:53
Adds the email_reset_requests relation (SHA-256 token, user_id, pending
new_email) plus CreateEmailResetRequest/ConsumeEmailResetRequest/UpdateEmail
queries, and implements CreateEmailResetRequest/ResetEmailFromResetRequest
in the user service, mirroring the existing password-reset flow. Also
generalizes the tiered auth-attempt rate-limit query (CountTieredAuthAttempts)
so it can be reused across actions.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Adds CreateEmailResetRequestHandler (authenticated, POST /email-reset)
and CreateTokenEmailResetHandler (PUT /email-reset?token=...) mirroring
the existing password-reset handler pattern, and wires them into the mux.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant