Validating that two values are the same in changeset

How would you proceed to validate that :password has the same value as :password_confirmation in changeset (these two values are virtual)?

This is precisely the use of validate_confirmation/3. :slight_smile:

3 Likes

You’re the best!

1 Like