akshitagupta15june / akshitagupta15june/PetMe

Proper client-side validation in contact us form!

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

説明

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

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

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

評価

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

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

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