Skip to content

🐞Bug: Log in page name field validation is missing #547

@AVNI-THEEXPLORER

Description

@AVNI-THEEXPLORER

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:

  1. Numbers (e.g., 12345)
  2. Special characters (e.g., @#$%^&*)
  3. 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

image

Expected Behaviour:

The "Name" field should have proper validation to ensure:

  1. Only alphabetic characters (and optionally spaces or hyphens) are allowed.
  2. Input length is reasonable (e.g., between 2 and 50 characters).
  3. Special characters and numeric inputs are restricted.

Actual Behavior:

The "Name" field lacks validation, allowing any input to be submitted without restrictions.

Impact:

  1. May result in improper user data stored in the database.
  2. Could lead to errors in other parts of the application that depend on clean user data.
  3. Reduces user experience and professionalism of the registration process.

Proposed Solution:

Implement front-end validation using HTML5 attributes like pattern or JavaScript.

Environment:

  1. Browser: Chrome
  2. OS: Windows 11
  3. Priority: High

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions