Password Verification
Function
验证用户密码
Endpoint
- /v1/member-pwd/verify
HTTP Method
- POST
Request Body
verify password with phone
{
"search_type": "phone",
"search_value": "8XXXXX",
"phone_region": "852"
"password": "encryption password value"
}
verify password with email
{
"search_type": "email",
"search_value": "email value",
"password": "encryption password value"
}
Request Parameters
| Field | Required | Type | Remark | Sample |
|---|---|---|---|---|
| search_type | Yes | string | 查詢類型: phone、email | phone |
| search_value | Yes | string | 查詢內容 | 8XXX |
| phone_region | No | string | 手機區號 ( search_type=phone ) | 852 |
| password | Yes | string | encryption password value to verify | xxx |
密碼加密過程
1) KEY = md5({ACCESS_KEY}::{VIP_ACCOUNTNO}) , 得到32位小寫KEY
2) 用 KEY 对 PASSWORD 进行AES-256-ECB(PKCS7Padding) 加密,base64後得到結果
例如:
ACCESS_KEY = api-account-001
VIP_ACCOUNTNO = 0480000427741101
PASSWORD = 123456
1、 KEY: ef615cd3e4f6ce652ded89334a128c26
2、RESULT: d+Mx3z3IA6gMP/OFAfMS6A==
Response Body - Success
{
"code": 0,
"msg": "success",
"data": {}
}
Diff FZ API
- None