Register endpoint missing length caps on prn, srn, password
Débutant
good first issue
3 ★
Poids du clone léger
Mise à jour
Description
**Severity:** Low
`src/app/api/auth/register/route.ts:71-79`: `prn` and `srn` accept any non-empty string (no length/format cap) and `password` has only a minimum (no maximum). Username/email/name are already bounded.
**Fix**
Add sensible max-length guards (and format validation for prn/srn if a format is known), consistent with the existing bounded fields.
**Acceptance:** over-long `prn`/`srn`/`password` inputs are rejected with a 400.
Issues similaires
Tout voir
TypeScript
Débutant
[Good First Issue] 🐡 Add new Japan Fact 251 - Beginner-Friendly Open-source Contribution
## 🟢 Good First Issue: Add Japan Fact #251 — Beginner-Friendly Open Source Contribution ![Time: <1 minute](h…
Mise à jour
TypeScript
Débutant
Error bucketing
It would be great to bucket the errors in different types i.e. Code exception, configuration exception, envir…
Mise à jour
TypeScript
Débutant
LP lock links omit the /token|lp/ URL segment, causing wrong-type lookups on the detail page
## Summary Lock detail links should include the lock's kind in the URL, e.g. `/app/lock/lp/:id` or `/app/loc…
Mise à jour