Enable 2FA

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

Authorizations:

Responses

Response Schema: application/json
object

Request samples

whmapi1 --output=jsonpretty \
  twofactorauth_enable_policy

Response samples

Content type
application/json
{
  • "metadata": {
    • "command": "twofactorauth_enable_policy",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}