API DocsAPI Docs
POST/api/auth/username/login
用户名登录
POST/api/auth/phone/login
手机号登录
POST/api/auth/phone/sendVerification
发送手机验证码
POST/api/auth/email/sendVerification
发送邮箱验证码
POST/api/auth/logout
用户登出
POST/api/auth/password/change
修改密码
GET/api/auth/wechat/login
微信登录
GET/api/auth/wechat/authCallback
微信授权回调
GET/api/auth/token
通用令牌检查接口
POST/api/auth/wechat/binding
绑定微信账号
POST/api/auth/email/login
邮箱验证码登录
POST/api/auth/username/login
用户名登录
POST/api/auth/phone/login
手机号登录
POST/api/auth/phone/sendVerification
发送手机验证码
POST/api/auth/email/sendVerification
发送邮箱验证码
POST/api/auth/logout
用户登出
POST/api/auth/password/change
修改密码
GET/api/auth/wechat/login
微信登录
GET/api/auth/wechat/authCallback
微信授权回调
GET/api/auth/token
通用令牌检查接口
POST/api/auth/wechat/binding
绑定微信账号
POST/api/auth/email/login
邮箱验证码登录
post/api/auth/password/change
post/api/auth/password/change
修改密码
Basic Information
Request Method:
post
Request URL:
https://www.lycoo.com/api/auth/password/change
Tags:
用户认证
Description
修改当前用户的登录密码
Header Parameters
Header Parameters Explanation
Header parameters are used to pass additional information, such as authentication credentials, content type, etc.
Parameter Name | Type | Required | Example Value | Description |
---|---|---|---|---|
Authorization | string | Required | Bearer sha_1234567890abcdef... | The authentication header is used to verify the identity of API requests, containing an access token Format: Bearer {token} |
Request Body Parameters
Request Body Parameters Explanation
Request body parameters are used to pass complex structured data, typically using the following format: application/json
Parameter Details
Parameter Name | Type | Required | Example Value | Description |
---|---|---|---|---|
oldPassword | string | Required | password123 | 当前密码 |
newPassword | string | Required | password123 | 新密码(至少6位) 最小长度: 6 |
JSON Example
{
"oldPassword": "string",
"newPassword": "string"
}
Response Example
200密码修改成功
{
"success": true,
"message": "string"
}
400
401
500