Ecto.Changeset.validate_confirmation/3

Parsed documentation:
View on GitHub
Validates that the given field matches the confirmation
parameter of that field.

By calling `validate_confirmation(changeset, :email)`, this
validation will check if both "email" and "email_confirmation"
in the parameter map matches.

Note that this does not add a validation error if the confirmation
field is nil. Note "email_confirmation" does not need to be added
as a virtual field in your schema.

## Options

  * `:message` - the message on failure, defaults to "does not match"

## Examples

    validate_confirmation(changeset, :email)
    validate_confirmation(changeset, :password, message: "passwords do not match")
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.