0

I am trying to match passwords using Zurb foundation abide, everything works fine except for the data-equalto tag, my code is:

 .password-field
        %label
          Parola
          %small necesar
        %input#pw1{required: '', type: 'password'}
        %small.error A strong password is needed
      .password-field
        %label
          Confirma Parola
          %small necesar
        %input{required: '', type: 'password' , "data-equalto"=> 'pw1'}
        %small.error A strong password is needed or passwords do not match

I am expecting for the A strong password is needed or passwords do not match message to pop but it's not happening

1 Answer 1

0

The password validation pattern was removed presumably because there are varying opinions on what makes a password "strong enough."

You can define your own password field requirements however. See the abide docs.

$(document).foundation({
  abide : {
    patterns: {
      password: /^yourRegexHere/
    }
  }
});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.