Skip to content

Commit

Permalink
Fix issue with Password Policy Builder (#818)
Browse files Browse the repository at this point in the history
fix issue #784 with password policy builder
  • Loading branch information
arvindkrishnakumar-okta authored Feb 8, 2023
1 parent 13eadd4 commit 4f7ae99
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ private PasswordPolicy build() {
if (priority != null)
policy.setPriority(priority);

if (policyType.equals("PASSWORD"))
if (PolicyType.PASSWORD.equals(policyType))
policy.setType(policyType);
else
throw new IllegalArgumentException("PolicyType should be 'PASSWORD', please use PolicyBuilder for other policy types.");
Expand Down

0 comments on commit 4f7ae99

Please sign in to comment.