diff --git a/.changeset/happy-rivers-grin.md b/.changeset/happy-rivers-grin.md new file mode 100644 index 00000000000..80d4d488742 --- /dev/null +++ b/.changeset/happy-rivers-grin.md @@ -0,0 +1,5 @@ +--- +"@wso2is/identity-apps-core": patch +--- + +Add a null check for the username field value 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 1fb38b539ef..a6f62cc58e8 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 @@ -247,8 +247,8 @@ } break; } - } - + } + if (federatedAuthenticators.length() > 0) { isFederated = true; } @@ -483,7 +483,7 @@ "Enter.your.username.here")%> value="<%=Encode.forHtmlAttribute(username)%>" <%}%>> + <% if(skipSignUpEnableCheck && StringUtils.isNotBlank(username)) {%> value="<%=Encode.forHtmlAttribute(username)%>" <%}%>> <% if (isSaaSApp) { %>

@@ -1574,7 +1574,7 @@ var isSSOLoginAuthenticatorConfigured = JSON.parse(<%=isSSOLoginAuthenticatorConfigured%>); var emailDomainDiscoveryEnabled = JSON.parse(<%=emailDomainDiscoveryEnabled%>); var emailDomainBasedSelfSignupEnabled = JSON.parse(<%=emailDomainBasedSelfSignupEnabled%>); - + if (isSSOLoginAuthenticatorConfigured && emailDomainDiscoveryEnabled && emailDomainBasedSelfSignupEnabled) { var params = new URLSearchParams({ idp: 'SSO', @@ -1589,7 +1589,7 @@ } else { $("#continue-with-email").hide(); $("#federated-authenticators").hide(); - $("#basic-form").show(); + $("#basic-form").show(); } var container;