Name and birth year should be required fields at registration #148

Closed
opened 2026-07-29 23:20:25 +00:00 by thatguygriff · 0 comments
Owner

Feedback

Mark name and birth year as required (like it does for questions)

Problem

Student name and date of birth (soon birth year — see the birth-year issue) can be submitted blank. Registration questions already have a required-field treatment; these two fields should match it.

Expected

  • Marked required in the UI with the same visual treatment as required registration questions
  • required on the inputs for client-side blocking
  • Server-side validation too — client-side required is not enforcement. Reject the submission with a field-level error when either is missing.

Places to touch

  • templates/frontend/register-page.php, templates/frontend/family-page.php
  • src/Auth/RegistrationPage.php — validation and error surfacing
  • src/Guardian/GuardianService.php — refuse blank names on edit
  • src/Registration/QuestionField.php — reuse its required-field markup for consistency
  • assets/css/frontend.css if the required marker needs styling
  • tests/Unit/Auth/RegistrationPageTest.php, tests/Unit/Guardian/GuardianServiceTest.php

Related

Blocked on / pairs with the birth-year change.

## Feedback > Mark name and birth year as required (like it does for questions) ## Problem Student name and date of birth (soon birth year — see the birth-year issue) can be submitted blank. Registration questions already have a required-field treatment; these two fields should match it. ## Expected - Marked required in the UI with the same visual treatment as required registration questions - `required` on the inputs for client-side blocking - **Server-side validation too** — client-side `required` is not enforcement. Reject the submission with a field-level error when either is missing. ## Places to touch - `templates/frontend/register-page.php`, `templates/frontend/family-page.php` - `src/Auth/RegistrationPage.php` — validation and error surfacing - `src/Guardian/GuardianService.php` — refuse blank names on edit - `src/Registration/QuestionField.php` — reuse its required-field markup for consistency - `assets/css/frontend.css` if the required marker needs styling - `tests/Unit/Auth/RegistrationPageTest.php`, `tests/Unit/Guardian/GuardianServiceTest.php` ## Related Blocked on / pairs with the birth-year change.
thatguygriff added the bug label 2026-07-29 23:20:25 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Unsupervised/unsupervised-scheduler#148