Skip to content

Commit

Permalink
feat(jans-config-api): user management enhancement to chk mandatory f…
Browse files Browse the repository at this point in the history
…eilds
  • Loading branch information
pujavs committed Apr 13, 2022
1 parent 0bc2282 commit 903ba5a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,5 @@ private ApiConstants() {}
public static final int DEFAULT_MAX_COUNT = 200;
public static final String SORT_BY = "sortBy";
public static final String SORT_ORDER = "sortOrder";

//commaSeparatedString of attributes to be excluded in User fetch request
//public static final String USER_EXCLUDED_ATTRIBUTES = "userPassword,";

}
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public String checkMandatoryFields(User user)
}
}
logger.debug("Checking mandatory missingAttributes:{} ", missingAttributes);
if (missingAttributes != null && missingAttributes.length() > 0) {
if (missingAttributes.length() > 0) {
missingAttributes.replace(missingAttributes.lastIndexOf(","), missingAttributes.length(), "");
}

Expand Down

0 comments on commit 903ba5a

Please sign in to comment.