Blog_Website icon indicating copy to clipboard operation
Blog_Website copied to clipboard

[Feature] Add Zod Validation for Model Form Inputs

Open MisbahAnsar opened this issue 1 year ago • 0 comments

Describe the feature you'd like to request

Currently, the modal form allows users to input their data (name, email, password for authentication) && (name, email, message for contact) without any client-side validation. This could result in incorrect or incomplete data being submitted. Adding Zod validation will ensure that all form inputs are properly validated according to defined rules before the form is processed.

Describe the solution you'd like

Name: Must be at least 2 characters long. Email: Must be a valid email address. password: Must have 8 characters minimum which includes letter, one sprecial character and one number.

Describe alternatives you've considered

This feature will improve form reliability and prevent users from submitting incomplete or incorrect data.

Additional context

i've gone through the codebase and in models>auth.js nd contact.js the proper validation isn't included, i am ready to work on this issue, assign this issue to me

MisbahAnsar avatar Oct 12 '24 02:10 MisbahAnsar