Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

/auth/update/password/{password}
Changes a users password.  The password can be SHA-256 encoded or plaintext and the API will encode it then. (We recommend passing the password encoded for obvious security reasons).
Possible Methods

GET

Arguments

password (required)
new password to set for current user, encrypted with SHA-256 (base 64) or plain text and URL-encoded

Json Object

n/a

 

Example
curl -b cookies.txt -X GET "http://localhost:8185/auth/update/password/8675301" > response.txt

 

Example Response
curl -b cookies.txt -X GET "http://localhost:8185/auth/update/password/8675301" > response.txt
{
    "response": {
        "action": "Login",
        "success": true,
        "time": 0
    },
    "data": {
        "cookie": "5357f2ebb8e0ff6e90202799"
    }
}

Note: Also will return a header: "Authorization":"5357f2ebb8e0ff6e90202799"

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.