Skip to content

Commit

Permalink
fixing password generation according to password policy (MID-1889)
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed May 16, 2014
1 parent 88de161 commit 3fdcc62
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -113,6 +113,10 @@ public static String generate(StringPolicyType policy, int defaultLength, boolea
maxLen = defaultLength;
generateMinimalSize = true;
}

if (maxLen == 0){
maxLen = defaultLength;
}

// Initialize generator
StringBuilder password = new StringBuilder();
Expand Down

0 comments on commit 3fdcc62

Please sign in to comment.