Skip to content

Commit

Permalink
Merge pull request #32 from nickvergessen/bugfix/noid/dont-dos-the-ja…
Browse files Browse the repository at this point in the history
…vascript

Don't overdo the strength check, the first 100chars are enough
  • Loading branch information
MorrisJobke authored Aug 3, 2020
2 parents 2bb623f + bad161c commit 7b4be36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.strengthify.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
};

function drawStrengthify() {
var password = $(this).val(),
var password = $(this).val().substring(0, 100),
elemId = $(this).attr('id'),
// hide strengthify if no input is provided
opacity = (password === '') ? 0 : 1,
Expand Down

0 comments on commit 7b4be36

Please sign in to comment.