This function removes the Two-Factor Authentication (2FA) settings for one or more specified user accounts.
Note:
If you remove the 2FA settings for an account, the user must perform the setup procedure again to re-configure 2FA on the account.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ twofactorauth_remove_user_config \ user='example.com'
{- "data": {
- "failed": {
- "username1": "You are not authorized to modify example",
- "username2": "You are not authorized to modify example"
}, - "users_modified": [
- "example"
]
}, - "metadata": {
- "command": "twofactorauth_remove_user_config",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}