Skip to content

Commit

Permalink
Merge pull request #6977 from PasinduYeshan/patch-hide-self-signup
Browse files Browse the repository at this point in the history
Hide multi emails and mobiles per user feature specific claims in self-register page
  • Loading branch information
PasinduYeshan authored Oct 13, 2024
2 parents 93216e7 + 52509e8 commit 446a407
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/plenty-deers-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/identity-apps-core": patch
---

Hide multi emails and mobiles per user feature specific attributes from self-registration page
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 446a407

Please sign in to comment.