-
Notifications
You must be signed in to change notification settings - Fork 116
Closed as not planned
Labels
Description
Description
On the Log in page, the name field validation is missing. Currently, the name field accepts numbers and letters.It can create a problem in the backend database.
Steps to Reproduce:
Navigate to the Log in page.
In the "Name" field, input invalid data such as:
- Numbers (e.g., 12345)
- Special characters (e.g., @#$%^&*)
- Extremely long strings (e.g., 500+ characters)
Attempt to submit the form.
Observe that the form accepts invalid inputs without any errors or warnings.
Screenshot
Expected Behaviour:
The "Name" field should have proper validation to ensure:
- Only alphabetic characters (and optionally spaces or hyphens) are allowed.
- Input length is reasonable (e.g., between 2 and 50 characters).
- Special characters and numeric inputs are restricted.
Actual Behavior:
The "Name" field lacks validation, allowing any input to be submitted without restrictions.
Impact:
- May result in improper user data stored in the database.
- Could lead to errors in other parts of the application that depend on clean user data.
- Reduces user experience and professionalism of the registration process.
Proposed Solution:
Implement front-end validation using HTML5 attributes like pattern or JavaScript.
Environment:
- Browser: Chrome
- OS: Windows 11
- Priority: High
