From 84346096106a3864e7da0eb4d2c4715d4c91ccc4 Mon Sep 17 00:00:00 2001 From: Dasuni Geeganage Date: Mon, 11 Dec 2023 09:47:57 +0530 Subject: [PATCH] Fix JIT Provisioning for username, password and consent option --- .../self-registration-username-request.jsp | 82 +++++++++++++++++++ 1 file changed, 82 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 84ed40c2a87..c41100605f0 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 @@ -415,6 +415,87 @@ <% } %> + <% if(skipSignUpEnableCheck) {%> +
+

+ <%=IdentityManagementEndpointUtil.i18n(recoveryResourceBundle, "Initiate.sign.up")%> +

+ + + <% if (error) { %> +
+ <%= IdentityManagementEndpointUtil.i18nBase64(recoveryResourceBundle, errorMsg) %> +
+ <% } %> + <%-- validation --%> + + +
+
+ +
+ + value="<%=Encode.forHtmlAttribute(username)%>" <%}%>> +
+ + <% if (isSaaSApp) { %> +

+ + <%=IdentityManagementEndpointUtil.i18n(recoveryResourceBundle, + "If.you.specify.tenant.domain.you.registered.under.super.tenant")%> +

+ <% } %> + + + + <% Map requestMap = request.getParameterMap(); + for (Map.Entry entry : requestMap.entrySet()) { + String key = Encode.forHtmlAttribute(entry.getKey()); + String value = Encode.forHtmlAttribute(entry.getValue()[0]); + if (StringUtils.equalsIgnoreCase("reCaptcha", key)) { + continue; + } %> +
+ +
+ <% } %> + <% + if (reCaptchaEnabled) { + String reCaptchaKey = CaptchaUtil.reCaptchaSiteKey(); + %> +
+
+
+
+ <% + } + %> + + +
+ + <%=IdentityManagementEndpointUtil.i18n(recoveryResourceBundle, "Cancel")%> + + +
+ +
+
+ <% } else {%>

<%=i18n(recoveryResourceBundle, customText, "sign.up.heading")%> @@ -1202,6 +1283,7 @@

+ <% }%>
<%-- product-footer --%>