deadpixelsociety / passport

A Kotlin-based Android view validation library with a simple DSL.
MIT License
30 stars 1 forks source link

Fields Matching validation / Confirm Password functionality #7

Closed PieterPicup closed 5 years ago

PieterPicup commented 5 years ago

Hi there.

I was wondering if there is a validator which can compare 2 fields to each other and validate if the data is the same? Like a password and confirm password validator.

If there is please direct me to it. If not can I create a custom validator to do what I need or could the feature be added in?

Thanks

deadpixelsociety commented 5 years ago

Hello.

There is no built-in validator that does this. But you can create a custom validator and implement that logic easily. See the SwitchCompat example to get you started.

PieterPicup commented 5 years ago

Hi

Thanks for the reply. I did manage to come right with the custom validator to impliment what I needed. Great Lib!