Completing the functionalization of the reset password code page

This commit is contained in:
Alihaghighattalab
2024-08-05 18:40:53 +03:30
parent accc7e35b9
commit ea2a96cff5
4 changed files with 77 additions and 26 deletions
+16
View File
@@ -32,4 +32,20 @@ export const LoginWithCodeSchema = yup.object({
.min(11, "شماره تماس نمیتوند کمتر از 11 رقم باشد")
.max(11, "شماره تماس نمیتواند بیشتر از 11 رقم باشد")
.matches(/^[0-9]{11}$/, "شماره تماس نامعتبر"),
})
export const ResetPasswordCodeSchema = yup.object({
code: yup.string()
.required("وارد کردن کد الزامی میباشد")
.min(5, "کد نمیتوند کمتر از 5 رقم باشد")
.max(5, "کد نمیتواند بیشتر از 5 رقم باشد")
.matches(/^[0-9]{5}$/, "کد نامعتبر"),
})
export const LoginCodeSchema = yup.object({
code: yup.string()
.required("وارد کردن کد الزامی میباشد")
.min(5, "کد نمیتوند کمتر از 5 رقم باشد")
.max(5, " کد نمیتواند بیشتر از 5 رقم باشد")
.matches(/^[0-9]{5}$/, "کد نامعتبر"),
})