Vendor change password Serializer
ChangePasswordSerializer
Description
Handles user password updates securely.
Fields
| Field | Description | Required | Write-only |
|---|---|---|---|
old_password |
Current password for verification. | Yes | Yes |
new_password |
New password to be set. | Yes | Yes |
confirm_password |
Confirmation of new password. | Yes | Yes |
Validation
- Ensures
old_passwordmatches the user's current password. - Prevents setting
new_passwordas the same asold_password. - Ensures
new_passwordandconfirm_passwordmatch.
Update Process
- If validation passes, the user's password is updated securely.