router/api-router.go:140。controller.Enable2FA,controller/twofa.go:37。account_security:write。同时需要满足接口的角色和业务要求。Authorization: Bearer ********************curl --location '/api/user/2fa/enable' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"code": "string",
"flow_token": "string",
"property1": "string",
"property2": "string"
}'{
"success": true,
"message": "string",
"data": {
"property1": "string",
"property2": "string"
},
"property1": "string",
"property2": "string"
}