akshitagupta15june / akshitagupta15june/PetMe

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

オープン
#1,801 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
HTML
スター
515
フォーク
747
PR マージ指標
30日以内にマージされた PR はありません

説明

**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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。