SFU-Blueprint / Pedals

Apache License 2.0
0 stars 0 forks source link

/register Modifications #66

Closed dangminhduc1101 closed 2 weeks ago

dangminhduc1101 commented 1 month ago

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

  1. Pull the latest updates from the develop branch.
  2. 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.
  3. Implement the following changes in register/page.tsx
    • 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.
  4. Submit a pull request and tag @dangminhduc1101 for review.
dangminhduc1101 commented 2 weeks ago

Resolved with 4c80cce