hereisSwapnil / hereisSwapnil/ExamTime
Implement ZOD Validation for Email and Username Formatting During Registration
- Dominant language
- JavaScript
- Stars
- 52
- Forks
- 100
- PR merge metrics
- No merged PRs in 30d
Description
Currently, our registration process lacks validation for the correct formatting of email addresses and usernames. To improve data integrity and user experience, we propose implementing ZOD validation to ensure that users provide correctly formatted data during registration.
1. Integrate ZOD (Zero-Overhead Data Validation) library into our registration process to validate email addresses and usernames.
2. Define validation schemas for email addresses and usernames to enforce correct formatting, including length constraints.
3. When a user attempts to register, validate the provided email address and username against the defined schemas.
4. If the data provided by the user does not meet the validation criteria, display a toast error message indicating the specific validation errors encountered.
5. Prompt the user to correct the errors and resubmit the registration form.
Contributor guide
Assessment
This issue has not been assessed yet.