serializers/password_reset.md
Password Reset Serializers
Description
Handles password reset functionality. Ensures passwords match before saving.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
password |
String | Yes | New password. (Write-only) |
confirm_password |
String | Yes | Confirmation of the new password. (Write-only) |
Validation
- Password and
confirm_passwordmust match.
Examples
Request Payload:
{
"password": "newpassword123",
"confirm_password": "newpassword123"
}