How to apply password input rules on an input of type text

Hey

Im working on a reset password flow. My first issue was validating that the 2 password. My inputs were of type password and nothing seemed to work when trying to compare the two

After Ive read previous posts about this issue I understood I need to change the inputs to be of type text. It solved it for me and now I can validate they match But this creates another issue:

When the input is of type text I cannot apply the input rules that I had for my passwords (minLower, minUpper, MinDigit..). Text inputs just dont offer the same input rules - as seen in the pics below

So my question is:

how can I achieve both goals:

  1. Validate that both inputs are equal

  1. Enforce standart api input rules

Pics:

Input rules available for input of type password:

Input rules available for input of type text:

6 replies