akshitagupta15june / akshitagupta15june/PetMe
🪲[Bug]: Validation required in contact us form.
- 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**

**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
Avaliação
Esta issue ainda não foi avaliada.