Completing the functionalization of the reset password code page
This commit is contained in:
@@ -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}$/, "کد نامعتبر"),
|
||||
})
|
||||
Reference in New Issue
Block a user