TF-99 error message required
This commit is contained in:
@@ -35,13 +35,13 @@ const DashboardChangePasswordComponent = () => {
|
||||
};
|
||||
const validationSchema = Yup.object().shape({
|
||||
current_password: Yup.string().required(
|
||||
t("ChangePassword.error_message_required")
|
||||
t("ChangePassword.error_message_current_password")
|
||||
),
|
||||
new_password: Yup.string()
|
||||
.min(8, t("ChangePassword.error_message_password_length"))
|
||||
.required(t("ChangePassword.error_message_required")),
|
||||
.required(t("ChangePassword.error_message_new_password")),
|
||||
new_password_confirmation: Yup.string()
|
||||
.required(t("ChangePassword.error_message_required"))
|
||||
.required(t("ChangePassword.error_message_confirm_password"))
|
||||
.test(
|
||||
t("ChangePassword.error_message_password_match"),
|
||||
t("ChangePassword.error_message_password_not_match"),
|
||||
|
||||
@@ -46,8 +46,8 @@ const LoginComponent = () => {
|
||||
password: "",
|
||||
};
|
||||
const validationSchema = Yup.object().shape({
|
||||
username: Yup.string().required(t("LoginPage.error_message_required")),
|
||||
password: Yup.string().required(t("LoginPage.error_message_required")),
|
||||
username: Yup.string().required(t("LoginPage.error_message_username")),
|
||||
password: Yup.string().required(t("LoginPage.error_message_password")),
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user