Timesafe.io
  • Introduzione
  • API
    • User
      • Login
      • User - Change Password
      • User - Create
    • Certificate
      • File
      • Versions
      • Certificate - put
    • Hash
    • Credits
Powered by GitBook
On this page

Was this helpful?

  1. API
  2. User

User - Change Password

Endpoint per il cambio della password. Il sistema non effettua verifiche sul grado di sicurezza della password, che viene lasciato al buon senso dell'utente.

user/change_password

POST https://public-api.timesafe.io/user/change_password

Questo servizio permette di modificare la password, fornendo la precedente password e la nuova.

Headers

Name
Type
Description

token

string

Token JWT ottenuto da endpoint di login

Request Body

Name
Type
Description

new

string

Nuova password

old

string

Vecchia password

{
    "status": "OK",
    "data": []
}
// UNCORRECT OLD PASSWORD 
{
    "error": {
        "code": "5_topi_invalidi",
        "details": "Wrong password."
    }
}

// MISSING PARAMETER
{
    "error": {
        "code": "3_asini_tristi",
        "details": [
            "This parameter is missing: ",
            "old"
        ]
    }
}

PreviousLoginNextUser - Create

Last updated 4 years ago

Was this helpful?