Skip to content

fix: make signup errors readable and email handling robust - #38

Merged
sergsol merged 1 commit into
mainfrom
fix/register-flow
Oct 4, 2026
Merged

sergsol merged 1 commit into
mainfrom
fix/register-flow

Conversation

@sergsol

@sergsol sergsol commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Fixes the register flow:

  • Frontend: format FastAPI 422 detail arrays (previously [object Object]), clear message for network failures and cold starts, enforce the 8-character password minimum in the form.
  • Backend: normalize emails (trim, lowercase, basic validation), case-insensitive lookup for register and login, 409 on concurrent duplicate signup.
  • Tests: case-insensitive duplicate and login, invalid email, short password.

Not covered here: the Render static site needs a /* -> /index.html rewrite so direct links like /register do not return 404.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DcZTTMqQV23Pa2zGeoV4db


Generated by Claude Code

- frontend: format FastAPI 422 detail arrays (was '[object Object]'), report
  network failures / cold starts clearly, enforce 8-char password in the form
- backend: normalize email (trim, lowercase, basic validation), case-insensitive
  lookup for register/login, return 409 on concurrent duplicate signup
- tests: case-insensitive duplicate/login, invalid email, short password

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DcZTTMqQV23Pa2zGeoV4db
@sergsol
sergsol merged commit 6e12a00 into main Oct 4, 2026
2 checks passed
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.

2 participants