diff --git a/.changeset/plenty-deers-serve.md b/.changeset/plenty-deers-serve.md new file mode 100644 index 00000000000..2cdb546a28a --- /dev/null +++ b/.changeset/plenty-deers-serve.md @@ -0,0 +1,5 @@ +--- +"@wso2is/identity-apps-core": patch +--- + +Hide multi emails and mobiles per user feature specific attributes from self-registration page diff --git a/identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-username-request.jsp b/identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-username-request.jsp index b7ba7227065..44dc605a7db 100644 --- a/identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-username-request.jsp +++ b/identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-username-request.jsp @@ -986,6 +986,10 @@ !StringUtils.equals(claim.getUri(), "http://wso2.org/claims/groups") && !StringUtils.equals(claim.getUri(), "http://wso2.org/claims/role") && !StringUtils.equals(claim.getUri(), "http://wso2.org/claims/url") && + !StringUtils.equals(claim.getUri(), "http://wso2.org/claims/emailAddresses") && + !StringUtils.equals(claim.getUri(), "http://wso2.org/claims/verifiedEmailAddresses") && + !StringUtils.equals(claim.getUri(), "http://wso2.org/claims/mobileNumbers") && + !StringUtils.equals(claim.getUri(), "http://wso2.org/claims/verifiedMobileNumbers") && !(claim.getReadOnly() != null ? claim.getReadOnly() : false)) { String claimURI = claim.getUri(); String claimValue = request.getParameter(claimURI); diff --git a/identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-with-verification.jsp b/identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-with-verification.jsp index eaf7318d664..09fa667086e 100644 --- a/identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-with-verification.jsp +++ b/identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-with-verification.jsp @@ -580,6 +580,10 @@ !StringUtils.equals(claim.getUri(), "http://wso2.org/claims/groups") && !StringUtils.equals(claim.getUri(), "http://wso2.org/claims/role") && !StringUtils.equals(claim.getUri(), "http://wso2.org/claims/url") && + !StringUtils.equals(claim.getUri(), "http://wso2.org/claims/emailAddresses") && + !StringUtils.equals(claim.getUri(), "http://wso2.org/claims/verifiedEmailAddresses") && + !StringUtils.equals(claim.getUri(), "http://wso2.org/claims/mobileNumbers") && + !StringUtils.equals(claim.getUri(), "http://wso2.org/claims/verifiedMobileNumbers") && !(claim.getReadOnly() != null ? claim.getReadOnly() : false)) { String claimURI = claim.getUri(); String claimValue = request.getParameter(claimURI);