Skip to content

Commit

Permalink
password hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Bdegraaf1234 committed Feb 21, 2024
1 parent 7197ce9 commit 9a6bd61
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,7 @@ public void checkPasswordStrength(String password) {

/** Check whether given password is too weak. */
private boolean isPasswordWeak(String password) {
return password.length() < 8
|| noneInRange(password, UPPER[0], UPPER[UPPER.length - 1])
|| noneInRange(password, LOWER[0], LOWER[LOWER.length - 1])
|| noneInRange(password, NUMERIC[0], NUMERIC[NUMERIC.length - 1]);
return password.length() < 12;
}

private boolean noneInRange(String str, int startInclusive, int endInclusive) {
Expand Down

0 comments on commit 9a6bd61

Please sign in to comment.