I am trying to validate that 2 password fields are identical during user registration. I found the crate Validator, with "custom", but I can't seem to find a way to pass the 2 struct value required.
I REALLY need to learn to read and search API docs properly.(I'm not a dev by trade) I had seen the "must_match" on the main page but never went for the description since I was sure it meant something like "value must match this", and not "must_match the other field.
If I had took the time to find and read this from the doc:
Validates that the 2 given fields match. Both fields are optionals
In the meantime, I decided to wrote all the validation by hand(works! But it took time...) I'm going to retry with must_match to see.