更新

描述

object authentication.update(object authentication)

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

此方法只有 Super admin(超级管理员) 用户可用。可以在用户角色设置中撤销调用该方法的权限。更多信息请查看用户角色

参数

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

返回值

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

示例

请求:

  1. {
  2. "jsonrpc": "2.0",
  3. "method": "authentication.update",
  4. "params": {
  5. "http_auth_enabled": 1,
  6. "http_case_sensitive": 0,
  7. "http_login_form": 1
  8. },
  9. "auth": "038e1d7b1735c6a5436ee9eae095879e",
  10. "id": 1
  11. }

响应:

  1. {
  2. "jsonrpc": "2.0",
  3. "result": [
  4. "http_auth_enabled",
  5. "http_case_sensitive",
  6. "http_login_form"
  7. ],
  8. "id": 1
  9. }

来源

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