重新生成备用码
curl --request POST \
--url https://api.lmm.best/api/user/2fa/backup_codesimport requests
url = "https://api.lmm.best/api/user/2fa/backup_codes"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.lmm.best/api/user/2fa/backup_codes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lmm.best/api/user/2fa/backup_codes"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}两步验证
重新生成备用码
🔐 需要登录(User权限)
POST
/
api
/
user
/
2fa
/
backup_codes
重新生成备用码
curl --request POST \
--url https://api.lmm.best/api/user/2fa/backup_codesimport requests
url = "https://api.lmm.best/api/user/2fa/backup_codes"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.lmm.best/api/user/2fa/backup_codes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lmm.best/api/user/2fa/backup_codes"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}响应
200
成功
最后修改于 2026年9月23日
⌘I