akshitagupta15june / akshitagupta15june/PetMe

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

Đang mở
#1,801 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
HTML
Star
515
Fork
747
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**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 **test@gmai.com** instead of test@gmail.com as seen in the media can lead to undelivered emails and communication failures.

2. Typos and Errors can lead to emails like user@gnail.com instead of user@gmail.com. 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'](https://akshitagupta15june.github.io/PetMe/)
2. Scroll down to Contact Us
4. Fill the form with a single space.
5. 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](https://github.com/akshitagupta15june/PetMe/assets/95236968/f357ad18-e5da-4fd0-ad79-468fd83cabe7)

**Desktop (please complete the following information):**
- OS: Win11
- Browser : Edge

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.