complete forgot password and fix bug

This commit is contained in:
Alihaghighattalab
2024-08-05 18:09:37 +03:30
parent 03fa343f03
commit a4e648363f
6 changed files with 43 additions and 12 deletions
+8
View File
@@ -16,4 +16,12 @@ export const resetPasswordSchema = yup.object({
repeatPassword: yup.string()
.oneOf([yup.ref('password')], "رمز عبور و تکرار آن باید یکسان باشند")
.required("تکرار رمز عبور الزامی است"),
})
export const forgotPasswordSchema = yup.object({
phoneNumber: yup.string()
.required("وارد کردن شماره تماس الزامی میباشد")
.min(11, "شماره تماس نمیتوند کمتر از 11 رقم باشد")
.max(11, "شماره تماس نمیتواند بیشتر از 11 رقم باشد")
.matches(/^[0-9]{11}$/, "شماره تماس نامعتبر"),
})