apu52/Travel_Website

[Bug]: Check the email format while subscribing

Closed this issue · 4 comments

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When users try to subscribe by entering their email, there is no validation or improper validation of the email format. As a result, users are able to enter incorrect or improperly formatted email addresses, causing issues with subscription or registration.

Expected behavior

When users enter their email in the subscription form:

The email should follow the standard format, i.e., username@domain.com.
If the email format is incorrect, an error message should appear, prompting the user to enter a valid email.
The form should not be submitted until a properly formatted email is entered

Add ScreenShots/Videos

Screenshot 2024-10-20 201308

On which device are you experiencing this bug?

Browser: Chrome

Record

  • I have read the Contributing Guidelines
  • I'm a GSSOC'24 Extended contributor
  • I'm a Hacktoberfest'24 contributor
  • I have starred the repository

@apu52 Please assign me under Gssoc-ext, hacktoberfest and level-1,2,3

/assign

@apu52 PLEASE REVIEW THE PR

✅ This issue has been successfully closed. Thank you for your contribution and helping us improve the project! If you have any more ideas or run into other issues, feel free to open a new one. Happy coding! 🚀