Date of Birth accepts unrealistic values (e.g. 01/01/1400 or 01/01/3000)
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
- Ambito
- authentication, backend, frontend, full-stack
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
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.
- Lingua principale
- TypeScript
- Stelle
- 4
- Fork
- 0
- Merge medio
- 14h 50m
- PR unite (30g)
- 5
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Garvan-Data-Science-Platform/ctrl
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
-
admin-client backend bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
backend bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Garvan-Data-Science-Platform/ctrl#970 · 1 commento ·
-
backend bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
backend bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Tutte le issue di Garvan-Data-Science-Platform/ctrl
Issue simili
-
enhancement good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
OWASP/cve-lite-cli#1335 ·
I maintainer di solito rispondono entro 1 giorno
-
Windows: main-screen mouse tracking requires WT_SESSION, so it never enables inside herdr panesAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 66/100
code-yeongyu/senpi#3353 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Channels status: needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
mastra-ai/mastra#27093 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement needs-triage ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno