Skip to content

Commit

Permalink
remove tenant name from username
Browse files Browse the repository at this point in the history
  • Loading branch information
amanda-ariyaratne committed Feb 11, 2025
1 parent 7f2d6f6 commit 8c7a03d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import org.wso2.carbon.identity.mgt.endpoint.util.IdentityManagementServiceUtil;
import org.wso2.carbon.identity.mgt.endpoint.util.client.model.User;
import org.wso2.carbon.utils.HTTPClientUtils;
import org.wso2.carbon.utils.multitenancy.MultitenantUtils;

import java.io.BufferedReader;
import java.io.IOException;
Expand Down Expand Up @@ -256,7 +257,7 @@ private JSONObject checkUserNameValidityInternal(User user, boolean skipSignUpCh

try (CloseableHttpClient httpclient = HTTPClientUtils.createClientWithCustomVerifier().build()) {
JSONObject userObject = new JSONObject();
userObject.put(USERNAME, user.getUsername());
userObject.put(USERNAME, MultitenantUtils.getTenantAwareUsername(user.getUsername()));

JSONArray properties = new JSONArray();
JSONObject property = new JSONObject();
Expand Down

0 comments on commit 8c7a03d

Please sign in to comment.