All tasksBeginner+100 XP1 hourOpen
Reserve usernames like admin, api and root
Anyone can sign up as "admin" or "api", which is confusing and a phishing risk. Reject a small list of reserved usernames.
What you'll learn
Extend a validator and cover it with focused unit tests.
Acceptance criteria
- `validateUsername` rejects `admin`, `api`, `root`, `support` and `devcircle` with a clear message
- The list lives in one exported constant in `src/validation.js`
- Tests in `test/validation.test.js`
- `npm test` passes
Contribution rules
- Work on a branch named
task-13-… - Your PR description must include
Closes #13 - Open the PR from the GitHub account you signed in with
- A maintainer must approve and merge it