Overview
Theupdate_password function changes a user’s password.
Function Signature
Parameters
The unique identifier of the user
Password update request containing:
current_password: Current password (required for verification)new_password: New password to set (required)
Return Value
ReturnsResult<()> indicating success or failure.
Basic Usage
Error Handling
Security Notes
- Passwords must meet minimum security requirements
- Current password is required for verification
- Password history may prevent reuse of recent passwords
- Users are typically notified via email after password changes
Rate Limits
- Password operations: 10 requests per minute per user
- Burst limit: 3 requests per second
Related Functions
- update_user - Update other user information
- fetch_user_details - Get user details
