Change Password
End/Modify user data and sessions directly securely.
Change the password of an existing user.
Endpoint Details
GET
/api/change_password.php
Query Parameters
| Parameter | Required | Description |
|---|---|---|
| sellerkey | Yes | Seller API Key |
| username | Yes | Target username |
| newpass | Yes | New password |
Success Response
{
"success": true,
"msg": "Password changed successfully"
}
Code Examples
fetch("http://localhost/commen/api/change_password.php?sellerkey=KEY&username=USER&newpass=NEWPASS")
.then(r => r.json())
.then(console.log);
<?php echo file_get_contents( "http://localhost/commen/api/change_password.php?sellerkey=KEY&username=USER&newpass=NEWPASS" ); ?>
import requests
r = requests.get("http://localhost/commen/api/change_password.php", params={
"sellerkey":"KEY",
"username":"USER",
"newpass":"NEWPASS"
})
print(r.text)
var client = new RestClient( "http://localhost/commen/api/change_password.php?sellerkey=KEY&username=USER&newpass=NEWPASS" ); var res = client.Execute(new RestRequest(Method.GET)); Console.WriteLine(res.Content);