CloseHasPwd
关闭指定网站的密码访问保护(HTTP Basic Auth)。
- 路由:
POST /site - action:
CloseHasPwd
输入参数
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| action | 是 | String | 固定值 CloseHasPwd |
| id | 是 | Integer | 网站 ID |
输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| status | Boolean | true 设置成功 |
示例
请求
POST /site HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded
action=CloseHasPwd&id=1
响应
{"status": true, "msg": "设置成功"}