Description:
Validation rules for Username and Password fields are missing or improperly enforced. Current behavior allows invalid inputs such as single underscores, whitespace-only passwords, and entries without clear length or composition requirements.
Expected Result
Username
- Enforce minimum and maximum length (e.g., min 3, max 32).
- Automatically trim whitespace at both ends before validation.
- Reject usernames consisting only of underscores or whitespace.
Password
- Enforce minimum and maximum length (e.g., min 8, max 64).
- Reject passwords consisting only of whitespace.
- Require at least one letter, one number, and one special character.
- Provide clear error messages when requirements are not met.
Actual Result
Username
- Accepts single underscore _ and single-character inputs.
- No clear length restrictions.
- Does not trim whitespace automatically.
Password
- Accepts whitespace-only values.
- Accepts single-character inputs.
- No clear length restrictions.
- No requirement for letters, numbers, or special characters.
Description:
Validation rules for Username and Password fields are missing or improperly enforced. Current behavior allows invalid inputs such as single underscores, whitespace-only passwords, and entries without clear length or composition requirements.
Expected Result
Username
Password
Actual Result
Username
Password