“Yup Password cocok” Kode Jawaban

yup validasi konfirmasi kata sandi

import * as Yup from 'yup';

validationSchema: Yup.object({
  password: Yup.string().required('Password is required'),
  passwordConfirmation: Yup.string()
     .oneOf([Yup.ref('password'), null], 'Passwords must match')
});
DevPedrada

Validasi Kata Sandi Yup

import * as Yup from 'yup';

validationSchema: Yup.object({
  password: Yup.string().required('Password is required'),
  passwordConfirmation: Yup.string()
     .oneOf([Yup.ref('password'), null], 'Passwords must match')
});
Gorgeous Goldfinch

bagaimana melakukan kata sandi konfirmasi di yup

passwordConfirm: Yup.string()
+               .label('Password Confirm')
+               .required()
+               .oneOf([Yup.ref('password')], 'Passwords does not match'),
Pleasant Pintail

Kata Sandi Yup Konfirmasi Kata Sandi

Yup.object({
  password: Yup.string().required('Password is required'),
  passwordConfirmation: Yup.string()
    .test('passwords-match', 'Passwords must match', function(value){
      return this.parent.password === value
    })
})
Quaint Quail

Yup Password cocok

 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"),
Vast Vicuña

Jawaban yang mirip dengan “Yup Password cocok”

Pertanyaan yang mirip dengan “Yup Password cocok”

Lebih banyak jawaban terkait untuk “Yup Password cocok” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya