complete forgot password and fix bug
This commit is contained in:
@@ -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}$/, "شماره تماس نامعتبر"),
|
||||
})
|
||||
Reference in New Issue
Block a user