Skip to content

Commit

Permalink
Fix: add readable error to validatePlatformPasswordSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
georgipavlov-7DIGIT committed Feb 1, 2024
1 parent 89657f3 commit 8adfbe4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion service/schemas/authSchemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ export const emailOTPSchema = yup.object().shape({

export const validatePlatformPasswordSchema = yup.object().shape({
language: yup.string().required(),
platformPassword: yup.string().required(),
platformPassword: yup.string().required(t("password_is_required_error")),
});
1 change: 1 addition & 0 deletions service/translations/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ export default {
email_otp_expired_error: "Verification code expired",
invalid_platform_password_error: "Invalid platform password",
no_platform_password_set_error: "No platform password is set",
password_is_required_error: "Password is required",
};
1 change: 1 addition & 0 deletions service/translations/kk.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ export default {
email_otp_expired_error: "Растау кодының мерзімі аяқталды",
invalid_platform_password_error: "Жарамсыз платформа құпия сөз",
no_platform_password_set_error: "Платформа құпия сөз жоқ",
password_is_required_error: "Құпия сөз қажет",
};
1 change: 1 addition & 0 deletions service/translations/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ export default {
email_otp_expired_error: "Срок действия кода подтверждения истек",
invalid_platform_password_error: "Неверный пароль платформы",
no_platform_password_set_error: "Пароль платформы не установлен",
password_is_required_error: "Требуется пароль",
};

0 comments on commit 8adfbe4

Please sign in to comment.