Change Password
Change the password for the authenticated user or store.
Endpoint
Authentication
Required
Request Body
{
"access_token": "current_access_token",
"old_password": "OldSecurePass123!",
"new_password": "NewSecurePass123!"
}
Parameters
| Field | Type | Required | Description | Validation |
|---|---|---|---|---|
access_token |
string | Yes | Current access token | Not empty |
old_password |
string | Yes | Current password | Min 8 chars, uppercase, lowercase, number, symbol |
new_password |
string | Yes | New password | Min 8 chars, uppercase, lowercase, number, symbol |
Response
Success (200 OK)
Error Responses
Validation Error (400)
Example Request
curl -X POST "https://api.luxmart.site/v1/accounts/change/password/" \
-H "Authorization: Token your_access_token" \
-H "Content-Type: application/json" \
-d '{
"access_token": "your_access_token",
"old_password": "OldSecurePass123!",
"new_password": "NewSecurePass123!"
}'
Notes
- Both old and new passwords must meet password requirements
- Password is validated and hashed before storage
- Works for both users and stores