Skip to content

Commit

Permalink
Merge pull request wso2#5105 from thanujalk/master
Browse files Browse the repository at this point in the history
Disable self-sign up for Console application.
  • Loading branch information
thanujalk authored Dec 20, 2023
2 parents bb7b1a5 + 8e8f6b4 commit 70c684e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/popular-elephants-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/identity-apps-core": patch
---

Disable self signup for Console
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,9 @@
try {
PreferenceRetrievalClient preferenceRetrievalClient = new PreferenceRetrievalClient();
isSelfSignUpEnabledInTenant = preferenceRetrievalClient.checkSelfRegistration(userTenant);
if (isSelfSignUpEnabledInTenant && StringUtils.equals("Console", appName)) {
isSelfSignUpEnabledInTenant = false;
}
isUsernameRecoveryEnabledInTenant = preferenceRetrievalClient.checkUsernameRecovery(userTenant);
isPasswordRecoveryEnabledInTenant = preferenceRetrievalClient.checkPasswordRecovery(userTenant);
} catch (PreferenceRetrievalClientException e) {
Expand Down Expand Up @@ -917,7 +920,7 @@
if (imageURL == null || imageURL.isEmpty()) {
logoPath = "libs/themes/default/assets/images/identity-providers/enterprise-idp-illustration.svg";
}
if (!imageURL.isEmpty() && imageURL.contains("assets/images/logos/")) {
String[] imageURLSegements = imageURL.split("/");
String logoFileName = imageURLSegements[imageURLSegements.length - 1];
Expand Down

0 comments on commit 70c684e

Please sign in to comment.