Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Date of Birth accepts unrealistic values (e.g. 01/01/1400 or 01/01/3000)

Aperta
#917 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
73/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
react, typescript

Direzione di ricerca

Start in application/user-client/src/pages/Register.tsx to locate the date-of-birth input, then find the backend registerParticipant implementation and its related tests. Add client-side bounds and matching backend range validation; verify that future dates and dates more than about 120 years ago are rejected while plausible dates are accepted.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

backend bug user-client

The Date of Birth field on the participant registration form has no bounds. Tested with 01/01/1400 (over 600 years ago) and 01/01/3000 (nearly 1000 years in the future) - both submit fine and render on the personal details page as-is.

nice to have sanity bounds:

  • Reject future dates outright
  • Reject dates more than ~120 years ago (unlikely to be a valid DoB)

Fix: add min/max attributes on the DoB input in application/user-client/src/pages/Register.tsx for client-side feedback, plus matching range validation on the backend in registerParticipant since there isn't one currently.

Image
Lingua principale
TypeScript
Stelle
4
Fork
0
Merge medio
14h 50m
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Garvan-Data-Science-Platform/ctrl

Tutte le issue di Garvan-Data-Science-Platform/ctrl

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.