diff --git a/.changeset/popular-elephants-sit.md b/.changeset/popular-elephants-sit.md new file mode 100644 index 00000000000..90b4fad09fb --- /dev/null +++ b/.changeset/popular-elephants-sit.md @@ -0,0 +1,5 @@ +--- +"@wso2is/identity-apps-core": patch +--- + +Disable self signup for Console diff --git a/identity-apps-core/apps/authentication-portal/src/main/webapp/login.jsp b/identity-apps-core/apps/authentication-portal/src/main/webapp/login.jsp index dee7662f583..96bb062e45e 100755 --- a/identity-apps-core/apps/authentication-portal/src/main/webapp/login.jsp +++ b/identity-apps-core/apps/authentication-portal/src/main/webapp/login.jsp @@ -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) { @@ -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];