All tasksBeginner+100 XP1–2 hoursOpen
Treat email addresses case-insensitively
ADA@x.io and ada@x.io can register as two different members. Normalise emails (trim + lowercase) before storing and when checking for duplicates.
What you'll learn
Data normalisation at the boundary of a system
Acceptance criteria
- Emails are stored trimmed and lowercased
- Signing up with the same email in different letter case returns 409
- The duplicate check lives in one place (no copy-pasted lowercasing)
- An API test in test/api.test.js covers the case-insensitive duplicate
Contribution rules
- Work on a branch named
task-2-… - Your PR description must include
Closes #2 - Open the PR from the GitHub account you signed in with
- A maintainer must approve and merge it