📅  最后修改于: 2022-03-11 15:01:17.410000             🧑  作者: Mango
password: yup
.string()
.required("Password is required")
.min(6, "Password must be at least 6 characters"),
passwordConfirmation: yup
.string()
.required("Confirm Password is required")
.oneOf([yup.ref("password"), null], "Passwords must match"),