akshitagupta15june / akshitagupta15june/PetMe

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

Abierto
#1,801 1 comentario 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
HTML
Estrellas
515
Forks
747
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.