Customer Identity (CIAM)
Change Personal Password via Mobile Phone Number
There are three methods to change personal password:
Change password via old password
Change password via email
Change password via mobile phone number
This document mainly describes changing personal password via mobile phone number.
This is a post-login API, requiring authentication information in the header: Authorization.
# Request Specification
POST https://{your_domain}/api/v2/sdk/pwd/update-by-mobile
# Request Headers
| Parameter | Chinese Name | Required | Type | Example |
|---|---|---|---|---|
| X-operating-sys-version | Calling Client OS Version | Yes | String | windows10.1.1 |
| X-device-fingerprint | Calling Client Device Fingerprint | Yes | String | 156aysdna213sc50 |
| X-device-ip | Calling Client IP | No | String | 192.168.1.2 |
| X-agent | User-Agent Information | Yes | String | Mozilla/5.0 (iPhone; CPU iPhone OS 13_3 like Mac OS X) |
| X-L | For Internationalization Language Setting | No | String | zh |
| X-client-id | Application Authorization ID | Yes | String | nTo1eRIub60vPb54WeE6aojPwYwImtl4 |
| content-type | Content Format Type | Yes | String | application/json |
| Authorization | Authorization Information | No | String | Bearer {id_token} |
# Request Example
{
"verify_code": "123456",
"password": "P@ssw0rd"
}
1
2
3
4
2
3
4
# Request Parameters
| Parameter Name | Chinese Name | Required | Type | Description |
|---|---|---|---|---|
| verify_code | SMS Verification Code | Yes | String | SMS verification code Refer to the Send SMS Verification Code API type=UPDATE_PWD_SMS for obtaining the verification code |
| password | New Password | Yes | String | The new password to be set |
# Response Example
Success Example:
HTTP/1.1 200 OK
Content-Type: application/json
Error Example:
HTTP/1.1 400 Bad Request
{
"error_code": "IDAAS.SDK.CAPTCHA.0007",
"error_msg": "Incorrect verification code"
}
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
# Response Parameters
None
# Error Codes
| Status Code | Error Code | Error Message | Handling Measures |
|---|---|---|---|
| 400 | IDAAS.SDK.PARAM.0001 | Device information is incomplete | Please check if the entered device information is complete |
| 设备信息不完整 | |||
| 400 | IDAAS.SDK.PARAM.0002 | clientId cannot be empty | Please check if the entered clientId is empty |
| clientId不能为空 | |||
| 400 | IDAAS.SDK.PARAM.0003 | The app is not registered, please register the app first | Please check if the entered clientId is correct |
| 应用未注册,请先注册应用 | |||
| 400 | IDAAS.SDK.PARAM.0009 | Verification code cannot be empty | Please check if the entered verification code is empty |
| 验证码不能为空 | |||
| 400 | IDAAS.SDK.CAPTCHA.0007 | Incorrect verification code | Please check if the entered verification code is correct |
| 验证码不正确 | |||
| 400 | IDAAS.SDK.USER.0004 | Mobile number cannot be empty | Please check if the entered mobile number is empty |
| 手机号不能为空 | |||
| 400 | IDAAS.SDK.USER.0006 | Password cannot be empty | Please check if the entered password is empty |
| 密码不能为空 | |||
| 400 | IDAAS.SDK.USER.0001 | User not found | Please register and try again |
| 用户未找到 | |||
| 400 | IDAAS.SDK.PWD.0001 | The password is used before, cannot be used again | Please re-enter the password |
| 不允许使用历史密码 | |||
| 400 | IDAAS.SDK.PWD.0002 | Password cannot username in reverse order | Please re-enter the password |
| 密码不允许使用用户名的倒写 | |||
| 400 | IDAAS.SDK.PWD.0003 | Password cannot contain :username, phone number, email prefix, name in PinYing | Please re-enter the password |
| 密码中不允许包含:用户名、手机号、邮箱前缀、姓名拼音 | |||
| 400 | IDAAS.SDK.PWD.0004 | Your password complexity is low, {0} | Please re-enter the password |
| 密码复杂度低,{0} | |||
| 400 | IDAAS.SDK.PWD.0005 | The password is weak | Please re-enter the password |
| 该密码为弱密码 | |||
| 400 | IDAAS.SDK.PWD.0006 | Number of character repeat in password should not exceed {0} | Please re-enter the password |
| 密码中最大字符重复数不能超过{0} | |||
| 400 | IDAAS.SDK.PWD.0007 | The password must contain {0} to {1} characters | Please re-enter the password |
| 密码长度为{0}~{1}个字符 |
I'm ready. Please paste the Markdown content you need translated.
