authentication.update

描述

object authentication.update(object authentication)

此方法用于 update 现有的认证设置。

此方法仅适用于 超级管理员 用户类型。 调用该方法的权限可以在用户角色设置中撤销。更多信息请参见 User roles

参数

(object) 认证 要更新。

返回值

(array) 返回一个 array,其中包含已更新参数的名称。

示例

执行请求:

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

响应:

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

来源

CAuthentication::update() 位于 ui/include/classes/api/services/CAuthentication.php 中。