Skip to content

Normalize account emails and improve password reset feedback - #6042

Open
jghiringhelli wants to merge 1 commit into
halogenandtoast:mainfrom
jghiringhelli:copilot/normalize-email-reset
Open

jghiringhelli wants to merge 1 commit into
halogenandtoast:mainfrom
jghiringhelli:copilot/normalize-email-reset

Conversation

@jghiringhelli

Copy link
Copy Markdown

Summary

  • Normalize email addresses at registration and use the normalized value for sign-in and password-reset lookups.
  • Add a normalized-email column and unique index; the migration stops with a clear error if existing accounts collide after normalization.
  • Keep reset requests generic for unknown addresses, and only show success after the API responds; operational failures remain visible and retryable.

Validation

  • node --test frontend/tests/passwordResetSubmission.test.mjs (2 passing)
  • npm --prefix frontend run tc (passed)
  • npm --prefix frontend run lint (0 errors; existing warnings)
  • The full frontend suite is not clean in this checkout because generated card data is absent; the backend suite could not be run because GHC/Stack/Sqitch are unavailable.

Use a database-backed normalized email for registration, sign-in, and reset
requests. Keep reset responses generic for unknown addresses, and only show
success after the API completes; show a retryable error for operational failures.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant