Skip to content

Confirmation

Majid Ahmaditabar edited this page Dec 10, 2021 · 2 revisions

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 = {
   "password": ["required", "confirmed"],
}

validate = PyValidation.make(data, rules)
Clone this wiki locally