From 98eb794c5ee59a43960dfb1f16ac49434d8f985e Mon Sep 17 00:00:00 2001 From: sandushi Date: Wed, 27 Mar 2024 16:34:17 +0530 Subject: [PATCH 1/3] Fix translating the email otp error message --- .../apps/authentication-portal/src/main/webapp/emailOtp.jsp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/identity-apps-core/apps/authentication-portal/src/main/webapp/emailOtp.jsp b/identity-apps-core/apps/authentication-portal/src/main/webapp/emailOtp.jsp index 3fabe5c8d2a..7dec3a243e2 100644 --- a/identity-apps-core/apps/authentication-portal/src/main/webapp/emailOtp.jsp +++ b/identity-apps-core/apps/authentication-portal/src/main/webapp/emailOtp.jsp @@ -79,6 +79,7 @@ if (errorMessage.equalsIgnoreCase("authentication.fail.message")) { errorMessage = AuthenticationEndpointUtil.i18n(resourceBundle, "error.retry.code.invalid"); } + System.out.println("------------------------"+ errorMessage) } } %> @@ -176,7 +177,7 @@ <% if ("true".equals(authenticationFailed)) { %> -
<%=AuthenticationEndpointUtil.i18n(resourceBundle, Encode.forJava(errorMessage))%> +
<%=Encode.forHtmlContent(errorMessage)%>
<% } %> From 8da751214c9d5f5826b9642190d2806f19e9c152 Mon Sep 17 00:00:00 2001 From: sandushi Date: Wed, 27 Mar 2024 16:37:37 +0530 Subject: [PATCH 2/3] Add changeset --- .changeset/wet-peas-hide.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/wet-peas-hide.md diff --git a/.changeset/wet-peas-hide.md b/.changeset/wet-peas-hide.md new file mode 100644 index 00000000000..7c6e70c04c1 --- /dev/null +++ b/.changeset/wet-peas-hide.md @@ -0,0 +1,5 @@ +--- +"@wso2is/identity-apps-core": patch +--- + +Fix email otp error message translating issue From 6a5cba19182d97b6c0c74d59e81b8851d861c1a6 Mon Sep 17 00:00:00 2001 From: sandushi Date: Wed, 27 Mar 2024 16:38:50 +0530 Subject: [PATCH 3/3] remove unwanted line --- .../apps/authentication-portal/src/main/webapp/emailOtp.jsp | 1 - 1 file changed, 1 deletion(-) diff --git a/identity-apps-core/apps/authentication-portal/src/main/webapp/emailOtp.jsp b/identity-apps-core/apps/authentication-portal/src/main/webapp/emailOtp.jsp index 7dec3a243e2..60f80ba67bc 100644 --- a/identity-apps-core/apps/authentication-portal/src/main/webapp/emailOtp.jsp +++ b/identity-apps-core/apps/authentication-portal/src/main/webapp/emailOtp.jsp @@ -79,7 +79,6 @@ if (errorMessage.equalsIgnoreCase("authentication.fail.message")) { errorMessage = AuthenticationEndpointUtil.i18n(resourceBundle, "error.retry.code.invalid"); } - System.out.println("------------------------"+ errorMessage) } } %>