akshitagupta15june / akshitagupta15june/PetMe

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

Aberta
#1,801 1 comentário 0 reações 0 responsáveis Ver no GitHub
bug
Linguagem predominante
HTML
Estrelas
515
Forks
747
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.