The registration page allows users to create multiple accounts with the same full name and date of birth (DOB). Additionally, unnecessary fields and functionalities for check-in on this page need to be removed.
Instructions
Pull the latest updates from the develop branch.
Start the server by running npm run dev (if needed, navigate to the src/ folder and run npm ci), then go to localhost:3000/register.
Duplicate User Validation: Add validation logic to prevent users from creating multiple accounts with the same full name and DOB. If a user tries to register with these details already in use, display an error feedback.
Remove Check-In Functionality: Remove the check-in functionality from this page, making it a registration-only page. Change the "Check-In" button to "Register" to reflect the purpose of the page. Remove the shift selection option.
Successful Registration Feedback: The feedback should also notify users that they can now check in through the designated check-in page.
Username Validation: Modify the username field to only allow lowercase letters or numbers, with no spaces allowed.
Submit a pull request and tag @dangminhduc1101 for review.
Problem
The registration page allows users to create multiple accounts with the same full name and date of birth (DOB). Additionally, unnecessary fields and functionalities for check-in on this page need to be removed.
Instructions
develop
branch.npm run dev
(if needed, navigate to thesrc/
folder and runnpm ci
), then go tolocalhost:3000/register
.