Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#917 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
73/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
react, typescript

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
TypeScript
Star
4
Fork
0
Merge trung bình
14 giờ 50 phút
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Garvan-Data-Science-Platform/ctrl

Tất cả issue của Garvan-Data-Science-Platform/ctrl

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.