Change user password

Change user password,need SID, safekey, timeStamp, the mobile phone number, the original password (MD5 encryption), the new password (you can choose the plaintext and MD5 encryption in one of the ways), and return the instructions after execution.


HTTP Request Methods

  • POST

Coding format

  • UTF-8

Request data

key Required More Restrictions Instructions Description
SID Yes Null School ID It is available through the application
safeKey Yes Fixed 32-bit all lowercase characters School authentication security key safeKey=MD5(SECRET+timeStamp)
timeStamp Yes Null imestamp used by safeKey Unix Epoch timeStamp is the number of seconds passed by 00:00 (world standard time) on January 1, 1970
oldMd5pass Yes 32 bit MD5 lower case The original MD5 password Null
password Yes(And md5pass 2 choose 1) No less than 6 new password Null
md5pass Yes(And md5pass 2 choose 1) 32 bit MD5 lower case New MD5 password Null
uid Yes Null User's UID Register the user UID returned by the user interface

Response data

key Type Sample value meaning
error_info object Return message object
└ errno number 1 The error code
└ error string "Normal execution" Error list


  • HTTP request
POST /partner/api/course.api.php?action=modifyPassword HTTP/1.1
Host: root_url
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache

  • Shell cURL analog request instruction
curl -H "Content-Type: application/x-www-form-urlencoded" -X "POST" \
    -d "SID=1234567" \
    -d "safeKey=0f7781b3033527a8cc2b1abbf45a5fd2" \
    -d "timeStamp=1484719085" \
    -d "telephone=12345678901" \
    -d "oldMd5pass=e10adc3949ba59abbe56e057f20f883e" \
    -d "md5pass=e10adc3949ba59abbe56e057f20f88232" \

Response sample(The normal return json packet example)


Error Code Instruction

Error Code Instruction
1 Successful execution.
100 Incomplete or incorrect parameters.
102 Don't have permissions(Security verification failed).
104 Operation failed.
113 The mobile phone number is not registered.
114 Server exception.
134 Illegal mobile phone number.
137 Illegal password length(6-20 digits).
138 Original password was wrong.
400 The requested data is not valid.

results matching ""

    No results matching ""