PrepEdge-AI icon indicating copy to clipboard operation
PrepEdge-AI copied to clipboard

password strength checker on the login or signup page

Open RAJVEER42 opened this issue 1 year ago • 29 comments

Is your feature request related to a problem? Please describe.
Yes. Currently, users have no way of knowing whether their password is strong or weak while typing it during registration or login. This can lead to weaker passwords being used and poor security practices.


Describe the solution you'd like
I would like to add a password strength checker to the login/signup page that:

  • Gives real-time feedback on password strength (e.g., Weak, Medium, Strong)
  • Uses visual indicators (like color bars or messages)
  • Encourages users to use strong passwords (combination of letters, numbers, and special characters)

Describe alternatives you've considered

  • Allowing password input without feedback (not recommended for user security)
  • Only checking password strength on form submission (less interactive)

Additional context
Here’s an example JavaScript-based logic for a basic password strength check:

function checkPasswordStrength(password) {
  let strength = 0;
  if (password.length >= 8) strength++;
  if (/[A-Z]/.test(password)) strength++;
  if (/[0-9]/.test(password)) strength++;
  if (/[^A-Za-z0-9]/.test(password)) strength++;

  if (strength <= 1) return "Weak";
  if (strength === 2) return "Medium";
  if (strength >= 3) return "Strong";
}

RAJVEER42 avatar Jul 27 '25 19:07 RAJVEER42

Hello! I’m interested in working on this issue as part of GSSoC’25.

I'd like to implement a password strength checker on the login and signup pages that provides real-time feedback to users. The checker will evaluate the password based on key parameters like:

Length

Use of uppercase and lowercase letters

Numbers

Special characters

Avoiding common passwords

It will display strength levels (e.g., Weak, Moderate, Strong) along with suggestions for improvement. I can also add visual indicators like a progress bar or color changes.

Please let me know if you have any specific design or validation requirements. Looking forward to contributing!

Thanks 🙌

myselfsneha avatar Jul 28 '25 04:07 myselfsneha

i have done this before please assign me this issue @RAJVEER42

ShrishtiMangla avatar Jul 28 '25 05:07 ShrishtiMangla

Please guys wait for us to assign the issues. It is advised not to work on anything just yet. This project is a part of GSSoC 2025 but we have not received permission to let the contributions begin as of now. So Please wait until then.

@RAJVEER42 @myselfsneha @ShrishtiMangla

CoderUzumaki avatar Jul 28 '25 11:07 CoderUzumaki

@RAJVEER42 You are assigned this issue. You can start working

CoderUzumaki avatar Jul 29 '25 07:07 CoderUzumaki

@CoderUzumaki Bro not able to run your code on my local machine, went through your readme.md and also the Learn.md still not able to do it.

RAJVEER42 avatar Jul 29 '25 22:07 RAJVEER42

@CoderUzumaki Bro not able to run your code on my local machine, went through your readme.md and also the Learn.md still not able to do it.

Hey @RAJVEER42, please ensure the dependencies and dotenv are properly configured. If the issue persists, please specify the exact error you're facing.

hudazaan avatar Jul 30 '25 06:07 hudazaan

Hi @RAJVEER42,

Just checking in on the Password Strength issue, it’s been about a week since it was assigned. We wanted to follow up and see if you're still working on it or need any assistance.

If we don’t hear back within the next 24 hours, we’ll go ahead and reassign it to keep things moving forward.

Let us know either way. Thanks!

CoderUzumaki avatar Aug 03 '25 06:08 CoderUzumaki

@myselfsneha are you interested to solve this issue?

CoderUzumaki avatar Aug 04 '25 11:08 CoderUzumaki

@myselfsneha are you interested to solve this issue?

CoderUzumaki avatar Aug 04 '25 11:08 CoderUzumaki

Hey @CoderUzumaki can you assign this task to me,I want to contribute in this task. As a contributor of GSSOC'25 contributor.

AnnaSian2006 avatar Aug 07 '25 12:08 AnnaSian2006

@AnnaSian2006 You have been assigned to this issue. Please begin working on it at your earliest convenience. Make sure to complete the task within the expected timeline. If you need any help or guidance, feel free to reach out — we're here to support you!

CoderUzumaki avatar Aug 07 '25 13:08 CoderUzumaki

Thank you, will resolve asap.

AnnaSian2006 avatar Aug 07 '25 13:08 AnnaSian2006

@CoderUzumakiCould you please assign me the access to this repo as a contributor , so that i would be able to clone this.

AnnaSian2006 avatar Aug 07 '25 13:08 AnnaSian2006

Hi @AnnaSian2006, just a quick clarification:

You're supposed to:

1.Fork this repository to your own GitHub account. 2.Clone your forked repo to your local machine. 3.Create a new branch for your fix or feature. 4.Make your changes and commit them to that branch. 5.Push the branch to your forked repo. 6.Then you’ll see an option to open a pull request from your branch to the main repo (this one).

Let us know if you need help with any of the steps! 😊

RedK22 avatar Aug 07 '25 14:08 RedK22

@RedK22 thanks for the clarification. will look into it.

AnnaSian2006 avatar Aug 07 '25 14:08 AnnaSian2006

and also how exactly you want the password strength checker to be?

  1. In the form of accuracy %age wise display? or 2. in the form of suggestions i.e (it should contain one cap alphabet, _ is compulsory etc.)

AnnaSian2006 avatar Aug 07 '25 14:08 AnnaSian2006

@AnnaSian2006 Include it as password suggestion, and display the message just below the input field in a clean and user-friendly manner. Also, consider disabling the login button until a valid password and email is entered that meets the required criteria.

CoderUzumaki avatar Aug 07 '25 14:08 CoderUzumaki

alright noted.

AnnaSian2006 avatar Aug 07 '25 15:08 AnnaSian2006

@myselfsneha are you interested to solve this issue?

Yes, I’m definitely interested! Thank you for considering me.

myselfsneha avatar Aug 07 '25 16:08 myselfsneha

I made the code for the password strength checker but when i'm running it locally after cloning it's showing some firebase error actually. i tried to inspect in console so, it's showing this

AnnaSian2006 avatar Aug 08 '25 13:08 AnnaSian2006