Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🪲[Bug]: Validation required in contact us form. #1801

Open
kshavp opened this issue Jun 8, 2024 · 1 comment
Open

🪲[Bug]: Validation required in contact us form. #1801

kshavp opened this issue Jun 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@kshavp
Copy link

kshavp commented Jun 8, 2024

Describe the bug
The contact us form lacks the following validation properties:

  1. Any user can use a single whitespace and bypass the name input field.
  2. Any email can be used to bypass the email input field as shown in the media.

Impact

  1. Invalid Email Addresses: If users can enter incorrectly formatted email addresses like [email protected] instead of [email protected] as seen in the media can lead to undelivered emails and communication failures.

  2. Typos and Errors can lead to emails like [email protected] instead of [email protected]. These minor errors can prevent users from receiving expected communications.

  3. Spam and Bots: Minimal validation increases the risk of spam and bot submissions. Bots often exploit poorly validated forms to send spam or phishing attempts.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'PetMe'
  2. Scroll down to Contact Us
  3. Fill the form with a single space.
  4. Use any bogus mail address on the email input field.

Expected behavior
The Form should not allow any user to bypass without entering genuine details.

Screenshots
image

Desktop (please complete the following information):

  • OS: Win11
  • Browser : Edge

@akshitagupta15june I can handle this issue using combination of regex and possibly domain validation.

@kshavp kshavp added the bug Something isn't working label Jun 8, 2024
@kunal-004
Copy link

kunal-004 commented Oct 22, 2024

Description

#1979 This PR resolves an issue in the contact form where invalid email addresses were being accepted. A regular expression for email validation has been added to ensure that only properly formatted email addresses (e.g., [email protected]) are allowed.
Please review the changes and provide feedback if further adjustments are needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants