Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGripe committed Jun 23, 2024
1 parent 61842be commit 2f702e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/0Password.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,14 @@ var ZeroPassword = function () {
password += char;
}

password = password.slice(0, length);

// Ensure password meets all requirements
if (!meetsRequirements(password, upperCase, lowerCase, numbers, specialChars)) {
return this.compute(keyword, service, length, upperCase, lowerCase, numbers, specialChars);
}

return password.slice(0, length);
return password;
}
};
}();

0 comments on commit 2f702e6

Please sign in to comment.