AOSSIE-Org / AOSSIE-Org/DebateAI

Issue: Incorrect Input Validation for Email/Password in Authentication

Đang mở
#66 4 bình luận 0 reaction 1 người được giao Được @Aanchall26 nhận Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
84
Fork
198
Merge trung bình
2 ngày 19 giờ
Pull request đã merge (30 ngày)
30

Mô tả

Observed Problem:

•On the login page of ArgueHub, an error message appears:
"The string did not match the expected pattern."
This suggests that the input validation for email or password is either too strict or incorrectly implemented.

Possible Causes & Fixes:

Email Regex Issue:
Your system might be using an overly restrictive regex pattern for email validation.
Example: If the backend only accepts example@domain.com but rejects subdomains (user@mail.co.in) or special characters, valid emails might fail.
Fix: Use a standard email regex.

•Frontend vs. Backend Validation Mismatch:

The frontend might allow certain email/password formats that the backend rejects.
Fix: Ensure that the same regex patterns and validation rules are enforced both in the frontend and backend.

•Unclear Error Messaging:
The generic message "The string did not match the expected pattern" does not tell the user exactly what is wrong.
Fix: Improve the error message to be specific, such as:
"Invalid email format. Use example@domain.com"
"Password must be at least 8 characters, include a number and a special symbol"

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.