[Vuejs]-PasswordConfirm rules in vee-validate 4.0

0👍

Looking at your v-models it seems the structure of your data function is this:

data() {
  return {
    info: {
      password: '',
      passwordConfirm: '',
    },
  };
},

So you have to refer to the properties of info object. Change your condition to this:

if( this.info.password != this.info.passwordConfirm ) {

Leave a comment