index.js:32 Error: Password is empty.
Closed this issue · 2 comments
MedinaGitHub commented
deanilvincent commented
Hi @MedinaGitHub ,
Yep, there's a condition in this package that throws Error if the password is empty :)
check-password-strength/index.js
Lines 2 to 4 in f08e978
I would suggest, for now, is to create an condition that checks if your input password is empty or not. :)
if(inputPass){
console.log(passwordStrength(inputPass).value);
}
MedinaGitHub commented
yes, maybe it is better to return 0, if not the app crashes.