akshitagupta15june / akshitagupta15june/PetMe

Proper client-side validation in contact us form!

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

Descripción

**Insufficient validation causing malicious inputs sent to server**
The current contact us form is accepting improper emails (like: abc@a) and could be submitted without name.
These situations end up sending wrong or unuseful entries to the server wasting resources.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to 'home page'
2. Click on 'contact us'
3. Scroll down to 'email'
4. Input abc@a in email, leave name empty and click submit.
5. See error (form getting submitted and wasting resources)

**Expected behavior**
In such scenarios of wrong inputs, the client-side validation should act and put up alerts on the user screen until every input is fine.

**Screenshots**

![image](https://github.com/akshitagupta15june/PetMe/assets/77058106/6340e93b-7fb1-49a2-b3c1-f3138e73aa68)

![image](https://github.com/akshitagupta15june/PetMe/assets/77058106/fefacb71-8743-4138-b23a-71c7291245f2)

This problem can be easily resolved using
1. Mandatory field of name
2. Regular expression for email having strict rules

I would love to contribute to this issue and solve it by contributing it as a part of GSSOC'23. Would be more than happy to be assigned this issue.

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.