authentication.update

描述

object authentication.update(object authentication)

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

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

参数

(object) 待更新的认证属性。

返回值

(array) 返回包含更新参数名称的array。

示例

请求:

{
           "jsonrpc": "2.0",
           "method": "authentication.update",
           "params": {
               "http_auth_enabled": 1,
               "http_case_sensitive": 0,
               "http_login_form": 1
           },
           "auth": "038e1d7b1735c6a5436ee9eae095879e",
           "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 文件中。