用户登录(OTP)
开发中POST
/user/2fa修改时间: 5 个月前
需要先进行普通登录,服务端会返回“需要OTP密钥”,这时才可以请求OTP登录,需要携带普通登录的cookies
请求参数
Body 参数application/json
code
string
OTP密钥
示例
{
"code": "000000"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
请求状态
data
#/definitions/95455409必需
msg
string
错误信息
示例
{
"code": 0,
"data": {
"id": "l6hY",
"user_name": "admin@cloudreve.org",
"nickname": "admin",
"status": 0,
"avatar": "",
"created_at": "2024-05-01T11:04:25.490486+08:00",
"preferred_theme": "",
"anonymous": false,
"group": {
"id": 1,
"name": "Admin",
"allowShare": true,
"allowRemoteDownload": true,
"allowArchiveDownload": true,
"shareDownload": true,
"compress": true,
"webdav": true,
"sourceBatch": 1000,
"advanceDelete": true,
"allowWebDAVProxy": false
},
"tags": []
},
"msg": ""
}
修改于 5 个月前