From 56c89a1ed9e3741d731ddb741e89b0ad1372da92 Mon Sep 17 00:00:00 2001 From: msm1992 Date: Mon, 28 Oct 2024 10:00:12 +0530 Subject: [PATCH] Add a character validation for lastname and givenname claims --- .../src/main/webapp/self-registration-process.jsp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/recovery-portal/src/main/webapp/self-registration-process.jsp b/apps/recovery-portal/src/main/webapp/self-registration-process.jsp index 3dd8382474e..3211ec392bb 100644 --- a/apps/recovery-portal/src/main/webapp/self-registration-process.jsp +++ b/apps/recovery-portal/src/main/webapp/self-registration-process.jsp @@ -91,6 +91,7 @@ String SELF_REGISTRATION_WITH_VERIFICATION_PAGE = "self-registration-with-verification.jsp"; String SELF_REGISTRATION_WITHOUT_VERIFICATION_PAGE = "* self-registration-without-verification.jsp"; String passwordPatternErrorCode = "20035"; + String invalidCharErrorCode = "20067"; String AUTO_LOGIN_COOKIE_NAME = "ALOR"; String AUTO_LOGIN_COOKIE_DOMAIN = "AutoLoginCookieDomain"; String AUTO_LOGIN_FLOW_TYPE = "SIGNUP"; @@ -266,7 +267,7 @@ } catch (Exception e) { IdentityManagementEndpointUtil.addErrorInformation(request, e); String errorCode = (String) request.getAttribute("errorCode"); - if (passwordPatternErrorCode.equals(errorCode)) { + if (passwordPatternErrorCode.equals(errorCode) || invalidCharErrorCode.equals(errorCode)) { String i18Resource = IdentityManagementEndpointUtil.i18n(recoveryResourceBundle, errorCode); if (!i18Resource.equals(errorCode)) { request.setAttribute(ERROR_MESSAGE, i18Resource);