ElxValidation.Confirmation (elx_validation v0.1.3)
confirmed
- The field under validation must have a matching field of {field}_confirmation. For example, if the field under
validation is password, a matching password_confirmation field must be present in the input.
data = %{ password: "123456", password_confirmation: "123456", } rules = [ %{ field: "password", validate: ["confirmed"] }, ]
Link to this section Summary
Functions
confirmation data: target : password fields should contain
Link to this section Functions
Link to this function
is_confirmed(target, value)
confirmation data: target : password fields should contain :
fields[:password]
fields[:password_confirmation]
and should equal