07sumit1002 / CabRental

The Cab Rental repository is a software system that provides a platform for individuals to rent vehicles for transportation. It is designed to offer an easy and seamless experience for users to book a ride.
https://07sumit1002.github.io/CabRental/
MIT License
34 stars 149 forks source link

Implementation of a proper password validator. #102

Closed elinabhasin closed 1 month ago

elinabhasin commented 1 month ago

Hello @07sumit1002 !

I noticed that the signup.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:

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.

alo7lika commented 1 month ago

To implement a robust password validator in Python, you can use regular expressions to check for specific rules, such as:

Minimum and maximum length. At least one uppercase letter. At least one lowercase letter. At least one digit. At least one special character (e.g., @, #, $, etc.).

assign me this work @07sumit1002 .Add labels gssoc and hacktoberfest

07sumit1002 commented 1 month ago

@alo7lika This issue has been resolved under WOB event