This function sets the secret and the authentication code for Two-Factor Authentication (2FA) for the root
or reseller account. You can generate a random secret and an OTP authentication URL with WHM API 1's twofactorauth_generate_tfa_configorauth_generate_tfa_config
function.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ twofactorauth_set_tfa_config \ secret='WJ73QJSKZBXCFIPZ' \ tfa_token='227174'
{- "data": {
- "success": 1
}, - "metadata": {
- "command": "twofactorauth_set_tfa_config",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}