Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sadilchamishka committed Jan 10, 2025
1 parent 3b0a1ba commit 6c38590
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1066,11 +1066,13 @@ public static void validateEmailUsername(User user) throws IdentityRecoveryClien
*/
public static User buildUser(String username, String tenantDomain) {

String[] parts = username.split(",");
/* The User Account Recovery process can identify multiple users that match the specified conditions.
In such cases, the usernames are represented as a comma-separated list. */
String[] usernameSegments = username.split(",");
User user = new User();
user.setTenantDomain(tenantDomain);

for (String part : parts) {
for (String part : usernameSegments) {
String domainFreeName = UserCoreUtil.removeDomainFromName(part);
if (user.getUserName() != null) {
user.setUserName(user.getUserName() + "," + domainFreeName);
Expand Down

0 comments on commit 6c38590

Please sign in to comment.