Jump to content

InputfieldPassword not recognising repeated password


swissdoode
 Share

Recommended Posts

Hi everybody

After some serious tampering, I was finally able to implement the «InputfieldPassword» in my Frontend.
(interestingly, the field seems to be made for the BE only, so I had to manually add the JS/CSS files - took me a while to figure that one out).

I'm using the Form-API to create the form, with this at the end:

$passwordField = $modules->InputfieldPassword;
$passwordField->attr('name', 'password');

$form->add($passwordField);

The fields are being rendered, the criterias I set are working, too.

When I fill in the form, the matching password-function recognises the 2nd password and indicates that the passwords match.

BUT: When I hit the submit-button, I get an error telling me to «repeat the same value» pointing to the password-repeat-field (Javascript validation is turned on for the form, so the form doesn't get submitted, but the JS seems to validate the form).

Why is that??? Am I missing something?

See attached image for clarification.

pw-repeat.png

 

Edit: When I turn off the JS-validation, the form is submitted correctly (I'd like to keep the JS-validation, though).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...