Special character passwords have no strength at all?
Opened this issue · 3 comments
Special character only passwords like "..--!!==" or "!§$%&/(" do not have any strength, regarding to the demo page. Is that a bug or a feature?
This is most certainly a bug.
Special chars are listed as a parameter in the code but not included in the strength evaluation method.
This is strange because in the code it looks like it is almost done, just add
if (thisval.match(specialchars)) { special = 1} else { special = 0; };
to the check_strength function and you'll get special characters included in strength checks
@hajajnidal @qoalu @RiZKiT I added a fix for this and submitted a pull request to integrate it in the main repository, but in the mean time you can get it from my fork here: https://github.com/petchaw/Strength.js