Completing the functionalization of the login with code page

This commit is contained in:
Alihaghighattalab
2024-08-05 18:22:52 +03:30
parent fb597b7d7d
commit accc7e35b9
3 changed files with 35 additions and 5 deletions
+8
View File
@@ -24,4 +24,12 @@ export const forgotPasswordSchema = yup.object({
.min(11, "شماره تماس نمیتوند کمتر از 11 رقم باشد")
.max(11, "شماره تماس نمیتواند بیشتر از 11 رقم باشد")
.matches(/^[0-9]{11}$/, "شماره تماس نامعتبر"),
})
export const LoginWithCodeSchema = yup.object({
phoneNumber: yup.string()
.required("وارد کردن شماره تماس الزامی میباشد")
.min(11, "شماره تماس نمیتوند کمتر از 11 رقم باشد")
.max(11, "شماره تماس نمیتواند بیشتر از 11 رقم باشد")
.matches(/^[0-9]{11}$/, "شماره تماس نامعتبر"),
})