mdazfar2 / Ezyshop

EzyShop is a user-friendly platform that connects you to local stores, offering a seamless shopping experience. Compare prices, access exclusive deals, and enjoy hassle-free deliveries for groceries, essentials, and organic products—all in one app.
https://ezyshopz.vercel.app
Apache License 2.0
89 stars 129 forks source link

[Doc]: Validate input formats to ensure correct user entries. #424

Open NIKITABARANWAL890 opened 2 hours ago

NIKITABARANWAL890 commented 2 hours ago

Is there an existing issue for this?

Issue Description

The Name input field accepts invalid characters, allowing entries that are not alphabets. The Email input field accepts capital letters and entries starting with numbers, which do not comply with proper email formatting. Input validation needs to be implemented to restrict both fields to their respective valid formats.

Screenshot 2024-10-10 214156

Suggested Change

1.For the Name Input Field: Character Restriction: Ensure the input only accepts alphabetic characters (A-Z, a-z) and possibly spaces or hyphens for names. Feedback Mechanism: Provide real-time feedback to the user if invalid characters are entered (e.g., displaying an error message). Placeholder Text: Use descriptive placeholder text to guide users on acceptable input formats (e.g., "Enter your full name").

2.For the Email Input Field: Format Validation: Implement a validation rule that only accepts lowercase letters, numbers, and special characters allowed in email addresses (e.g., periods, underscores). Starting Character Restriction: Ensure that the email cannot start with a number, enforcing proper email formatting. User Feedback: Display error messages or prompts if the input does not meet the criteria, informing users of the specific formatting requirements.

@mdazfar2 sir, kindly assign me this issue under GSSOC'24 ext.

Rationale

No response

Urgency

High

Acknowledgements

github-actions[bot] commented 2 hours ago

Hello NIKITABARANWAL890! Thanks for opening an issue in Ezyshop! 🚀