diff --git a/signup-ui/public/locales/en.json b/signup-ui/public/locales/en.json
index bf4eb82b..2e285463 100644
--- a/signup-ui/public/locales/en.json
+++ b/signup-ui/public/locales/en.json
@@ -121,9 +121,9 @@
"not_registered": "Not Registered",
"reset_pwd_failed": "Reset Password Failed",
"identifier_already_registered": "Identifier already registered",
- "identifier_not_found": "Identifier not found",
- "invalid_kba_challenge": "Invalid Fullname challenge",
- "kba_challenge_not_found": "Fullname challenge not found",
+ "identifier_not_found": "Invalid number or name. Please enter a registered mobile number and full name.",
+ "invalid_kba_challenge": "Invalid number or name. Please enter a registered mobile number and full name.",
+ "kba_challenge_not_found": "Invalid number or name. Please enter a registered mobile number and full name.",
"identity_inactive": "Identifier inactive",
"fetch_identity_failed": "Fetch Identifier Failed",
"challenge_format_and_type_mismatch": "Challenge format and type mismatch",
diff --git a/signup-ui/public/locales/km.json b/signup-ui/public/locales/km.json
index a0a4d10b..efac5a54 100644
--- a/signup-ui/public/locales/km.json
+++ b/signup-ui/public/locales/km.json
@@ -121,12 +121,12 @@
"not_registered": "មិនបានចុះឈ្មោះ",
"reset_pwd_failed": "ការកំណត់ពាក្យសម្ងាត់ឡើងវិញបានបរាជ័យ",
"identifier_already_registered": "អត្តសញ្ញាណបានចុះឈ្មោះរួចហើយ",
- "identifier_not_found": "រកមិនឃើញអត្តសញ្ញាណ",
- "invalid_kba_challenge": "ឈ្មោះមិនត្រឹមត្រូវ",
- "kba_challenge_not_found": "រកមិនឃើញឈ្មោះ",
+ "identifier_not_found": "លេខទូរស័ព្ទ ឬឈ្មោះមិនត្រឹមត្រូវ។ សូមបញ្ចូលលេខទូរស័ព្ទនិងឈ្មោះដែលបានចុះឈ្មោះ។",
+ "invalid_kba_challenge": "លេខទូរស័ព្ទ ឬឈ្មោះមិនត្រឹមត្រូវ។ សូមបញ្ចូលលេខទូរស័ព្ទនិងឈ្មោះដែលបានចុះឈ្មោះ។",
+ "kba_challenge_not_found": "លេខទូរស័ព្ទ ឬឈ្មោះមិនត្រឹមត្រូវ។ សូមបញ្ចូលលេខទូរស័ព្ទនិងឈ្មោះដែលបានចុះឈ្មោះ។",
"identity_inactive": "អត្តសញ្ញាណអសកម្ម",
"fetch_identity_failed": "ទាញយកលេខសម្គាល់បានបរាជ័យ",
- "challenge_format_and_type_mismatch": "ទម្រង់និងប្រភេទមិនត្រូវគ្នា",
+ "challenge_format_and_type_mismatch": "លេខទូរស័ព្ទ ឬឈ្មោះមិនត្រឹមត្រូវ។ សូមបញ្ចូលលេខទូរស័ព្ទនិងឈ្មោះដែលបានចុះឈ្មោះ។",
"knowledgebase_mismatch": "លេខទូរស័ព្ទ ឬឈ្មោះមិនត្រឹមត្រូវ។ សូមបញ្ចូលលេខទូរស័ព្ទនិងឈ្មោះដែលបានចុះឈ្មោះ។",
"IDR-IDC-001": "រកមិនឃើញតម្លៃដែលបានបញ្ចូល",
"IDR-IDC-002": "តម្លៃដែលបានបញ្ចូលមិនត្រឹមត្រូវ",
diff --git a/signup-ui/src/pages/ResetPasswordPage/Otp/Otp.tsx b/signup-ui/src/pages/ResetPasswordPage/Otp/Otp.tsx
index 480120d1..d3639b7f 100644
--- a/signup-ui/src/pages/ResetPasswordPage/Otp/Otp.tsx
+++ b/signup-ui/src/pages/ResetPasswordPage/Otp/Otp.tsx
@@ -32,6 +32,7 @@ import {
ResetPasswordForm,
SettingsDto,
VerifyChallengeRequestDto,
+ ResetPasswordPossibleInvalid,
} from "~typings/types";
import { resetPasswordFormDefaultValues } from "../ResetPasswordPage";
@@ -203,7 +204,7 @@ export const Otp = ({ methods, settings }: OtpProps) => {
onSuccess: ({ errors }) => {
if (errors.length > 0) {
if (
- ["invalid_transaction", "knowledgebase_mismatch"].includes(
+ ["invalid_transaction", ...ResetPasswordPossibleInvalid].includes(
errors[0].errorCode
)
) {
diff --git a/signup-ui/src/pages/ResetPasswordPage/ResetPasswordPage.tsx b/signup-ui/src/pages/ResetPasswordPage/ResetPasswordPage.tsx
index ff6345d1..a276e496 100644
--- a/signup-ui/src/pages/ResetPasswordPage/ResetPasswordPage.tsx
+++ b/signup-ui/src/pages/ResetPasswordPage/ResetPasswordPage.tsx
@@ -14,7 +14,7 @@ import {
validatePassword,
validateUsername,
} from "~pages/shared/validation";
-import { ResetPasswordForm, SettingsDto } from "~typings/types";
+import { ResetPasswordForm, ResetPasswordPossibleInvalid, SettingsDto } from "~typings/types";
import Otp from "./Otp";
import ResetPassword from "./ResetPassword";
@@ -108,7 +108,7 @@ export const ResetPasswordPage = ({ settings }: ResetPasswordPageProps) => {
if (
step === ResetPasswordStep.ResetPasswordConfirmation ||
(criticalError &&
- ["invalid_transaction", "knowledgebase_mismatch"].includes(
+ ["invalid_transaction", ...ResetPasswordPossibleInvalid].includes(
criticalError.errorCode
))
)
@@ -149,7 +149,7 @@ export const ResetPasswordPage = ({ settings }: ResetPasswordPageProps) => {
return (
<>
{criticalError &&
- ["invalid_transaction", "knowledgebase_mismatch"].includes(
+ ["invalid_transaction", ...ResetPasswordPossibleInvalid].includes(
criticalError.errorCode
) &&