Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jiaoyou_doc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyinting
jiaoyou_doc
Commits
65384673
Commit
65384673
authored
Jan 14, 2023
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加通过邮箱或者手机号找回密码
parent
28347897
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
1 deletion
+65
-1
用户模块重构版.md
dramaeditor/用户模块重构版.md
+65
-1
No files found.
dramaeditor/用户模块重构版.md
View file @
65384673
####
获取图片验证码
####
获取图片验证码
...
...
@@ -314,4 +314,67 @@ SUCCESS:
"token"
:
"eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2Mzg3OTQ1MjYsImV4cCI6MTYzODg4MDkyNiwiYXV0aG9yaXR5IjoxLCJpZCI6MzZ9.VoRSXhSLJXlU_Lo_azzOGXJRNHa6wmh8_RZcYkm_xXs"
}
}
```
#### 通过邮箱/手机号重置密码
URL: {backUrl}/user/forgot/password
METHOD: POST
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
RequestBody:
```
json
{
"username"
:
"jinfengli"
,
//
用户名
"password"
:
"123"
,
//
密码
"email"
:
"jinfengli@qiwu.ai"
,
//
verifyType为
1
时候填写
"code"
:
"774109"
,
//
从邮箱或者手机获取状态码
"telephoneNumber"
:
"13009633593"
,
//
verifyType为
2
时候填写
"verifyType"
:
1
//
1
:
表示邮箱;
2
:
表示手机号
}
```
ResponseBody:
```
json
{
"code"
:
1
,
"msg"
:
"成功"
,
"data"
:
null
}
```
邮箱重置密码例子:
```
curl --location --request POST 'http://tx-gz18.heyqiwu.cn/api/juben/user/login/forgot/password' \
--header 'Content-Type: application/json' \
--data-raw '{
"username":"jinfengli",
"password":"123",
"email":"jinfengli@qiwu.ai",
"code":"774109",
"verifyType":1
}'
```
手机号重置密码例子:
```
curl --location --request POST 'http://tx-gz18.heyqiwu.cn/api/juben/user/login/forgot/password' \
--header 'Content-Type: application/json' \
--data-raw '{
"username":"jinfengli",
"password":"test123",
"telephoneNumber":"13009633593",
"code":"303877",
"verifyType":2
}'
```
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment