-
Notifications
You must be signed in to change notification settings - Fork 0
Confirmation
Majid Ahmaditabar edited this page Dec 10, 2021
·
2 revisions
- 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)