Use the interface to log in. After the user logs in successfully, the Session ID is stored in the Cookie (Cookie: sid=t2i704wbvoy51y408p588bpji010ibp0).

Request Mode

POST /api/user/login
Parameter Description
username The username
password The password which is encrypted with SHA256

Response Body

    "status": 0,
    "sid": "t2i704wbvoy51y408p588bpji010ibp0"
Name Description
status 0 indicates that the request was accepted successfully. 36 indicates that the username or password is incorrect. Refer to API Status Codes to find specific description for other values.

Interface Example

// login (username: Admin, password=Admin)
curl --cookie-jar sid.txt -X POST -H 'Content-Type: application/json' -d'{"username":"Admin", "password": "c1c224b03cd9bc7b6a86d77f5dace40191766c485cd55dc48caf9ac873335d6f"}'

results matching ""

    No results matching ""