📜  是的,密码匹配 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:17.410000             🧑  作者: Mango

代码示例5
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"),