[comment]: # translation:outdated

[comment]: # ({35521717-35521717})
# 更新

[comment]: # ({/35521717-35521717})

[comment]: # ({19c357e4-4244aae4})
### 描述

`object authentication.update(object authentication)`

此方法允许更新现有的认证设置。

::: noteclassic
此方法仅对*超级管理员*用户类型可用。
可以在用户角色设置中撤销调用此方法的权限。更多信息，请参见
[用户角色](/manual/web_interface/frontend_sections/users/user_roles)。
:::

[comment]: # ({/19c357e4-4244aae4})

[comment]: # ({105c772c-6894664c})
### 参数

`(object)` [要更新的认证属性](object#认证)。

[comment]: # ({/105c772c-6894664c})

[comment]: # ({f63e579c-440363c6})
### 返回值

`(array)` 返回一个包含已更新参数名称的数组。

[comment]: # ({/f63e579c-440363c6})

[comment]: # ({8072648f-f95d3166})
### 示例

[请求](/manual/api#执行请求):

```json
{
    "jsonrpc": "2.0",
    "method": "authentication.update",
    "params": {
        "http_auth_enabled": 1,
        "http_case_sensitive": 0,
        "http_login_form": 1
    },
    "id": 1
}
```

响应:

```json
{
    "jsonrpc": "2.0",
    "result": [
        "http_auth_enabled",
        "http_case_sensitive",
        "http_login_form"
    ],
    "id": 1
}
```

[comment]: # ({/8072648f-f95d3166})

[comment]: # ({97fcecb8-8e7357d5})
### 源码位置

CAuthentication::update() 在 *ui/include/classes/api/services/CAuthentication.php* 文件中。

[comment]: # ({/97fcecb8-8e7357d5})
