Authentication
Two-Factor Authentication

Enable 2FA

This function enables the Two-Factor Authentication (2FA) security policy on the server.

get/twofactorauth_enable_policy

Request

  • Base URL
    https://whm-server.tld:2087/json-api
  • Auth
    HTTP basic

Response

HTTP Request was successful.

Example response

{
  "metadata": {
    "command": "twofactorauth_enable_policy",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}

Changes

No recorded changes to this operation across all 5 revisions of this API.