Confirm Password¶
Confirm the password of a login user.
Prerequisites¶
The user has logged in to Application Portal and entered an OU. You can log in to Application Portal through the Log In API and select the OU through the Choose Organization API.
Request Format¶
POST https://{apigw-address}/app-portal-service/v2.3/password/confirm
Request Parameters (Header)¶
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
Authorization |
Required |
String |
The access token generated after the user logs in and selects the OU, represented by Bearer Token, is in the form of |
Request Parameters (Body)¶
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
password |
Required |
String |
User password. |
Response Parameters¶
Name |
Data Type |
Description |
---|---|---|
data |
Boolean |
Whether the password is correct. |
Error Codes¶
Error Code |
Description |
---|---|
31400 |
Password is required. |
31401 |
User login is required. |
31429 |
Too many attempts with incorrect passwords. |
Samples¶
Request Sample¶
url: https://{apigw-address}/app-portal-service/v2.3/password/confirm
method: POST
headers: {"Authorization":"Bearer your_token"}
requestBody:
{
"password": "your_password"
}
Return Sample¶
{
"code": 0,
"data": true,
"message": "OK"
}