From fdb4da5406e6e9a424db81d5a6c8922eceb60492 Mon Sep 17 00:00:00 2001 From: Pasindu Yeshan Date: Sun, 13 Oct 2024 15:38:27 +0530 Subject: [PATCH 1/2] Hide multi email and mobile per user specific claims in self-register page --- .../src/main/webapp/self-registration-username-request.jsp | 4 ++++ .../src/main/webapp/self-registration-with-verification.jsp | 4 ++++ 2 files changed, 8 insertions(+) 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); From 52509e804192975c52190431c63a8321309c6f49 Mon Sep 17 00:00:00 2001 From: Pasindu Yeshan Date: Sun, 13 Oct 2024 15:47:34 +0530 Subject: [PATCH 2/2] Add changeset --- .changeset/plenty-deers-serve.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/plenty-deers-serve.md 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