mansiruhil13 / Bobble-AI

1 stars 7 forks source link

Implement Proper Validation for Username and Password in Login Page #10

Closed elinabhasin closed 1 day ago

elinabhasin commented 3 days ago

Hello @mansiruhil13 !

I noticed that the login.html page currently does not validate the username and password inputs. Implementing proper validation is crucial for ensuring both security and a better user experience. Here are the specific improvements I propose:

Username Validation:

Check that the username is not empty. Ensure the username meets certain criteria (e.g., length, allowed characters).

Password Validation:

Ensure the password field is not empty. Implement checks for password strength, such as: Minimum length (e.g., 8 characters) Inclusion of uppercase letters, lowercase letters, numbers, and special characters.

Feedback Messages:

Provide user-friendly feedback messages for invalid inputs, guiding the user to correct them.

Proposed Solution: I would implement JavaScript validation functions that check these criteria before the form is submitted. This would enhance the overall security of the application and improve the user experience by preventing invalid submissions.

If this approach sounds good, I'd be happy to work on it and submit a pull request with the changes.

mansiruhil13 commented 3 days ago

Ok.

elinabhasin commented 2 days ago

I just created a pull request with my changes—could you take a look and merge it if everything looks good?

elinabhasin commented 1 day ago

Hi! could you add a label to the issue?

elinabhasin commented 22 hours ago

Thank you so much for the label but for getting my pull request to be counted in the leaderboard, i need a label of WOB or a similar one. Could you please do the same.