CFE-2 Merge branch 'bugfix/CFE-2_validation_massage' into 'develop'
This commit is contained in:
@@ -55,7 +55,8 @@
|
|||||||
"link_routing_back_to": "بازگشت به",
|
"link_routing_back_to": "بازگشت به",
|
||||||
"link_routing_previuos_page": "صفحه قبل",
|
"link_routing_previuos_page": "صفحه قبل",
|
||||||
"link_routing_main_page": "صفحه اصلی",
|
"link_routing_main_page": "صفحه اصلی",
|
||||||
"error_message_required": "اجباری!"
|
"username_error_message_required": "وارد کردن نام کاربری الزامیست",
|
||||||
|
"password_error_message_required": "وارد کردن رمز عبور الزامیست"
|
||||||
},
|
},
|
||||||
"ErrorPage": {
|
"ErrorPage": {
|
||||||
"custom_404": "صفحه مورد نظر یافت نشد | 404",
|
"custom_404": "صفحه مورد نظر یافت نشد | 404",
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ const LoginComponent = () => {
|
|||||||
password: "",
|
password: "",
|
||||||
};
|
};
|
||||||
const validationSchema = Yup.object().shape({
|
const validationSchema = Yup.object().shape({
|
||||||
username: Yup.string().required(t("LoginPage.error_message_required")),
|
username: Yup.string().required(t("LoginPage.username_error_message_required")),
|
||||||
password: Yup.string().required(t("LoginPage.error_message_required")),
|
password: Yup.string().required(t("LoginPage.password_error_message_required")),
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user