This function returns the Two-Factor Authentication (2FA) configuration for a cPanel account, its email accounts, and its team user accounts.
HTTP Request was successful.
object The cPanel user account that the API was called for. | |
object |
whmapi1 --output=jsonpretty \ twofactorauth_get_tfa_config_for_user \ user='user'
{- "data": {
- "example": {
- "email": {
- "user@example.com": {
- "secret": "QLLIU5WTY3UTJGNG"
}
}, - "primary_account": {
- "secret": "QLLIU5WTY3UTJGNG"
}, - "team": {
- "team_user@example": {
- "secret": "QLLIU5WTY3UTJGNG"
}
}
}
}, - "metadata": {
- "command": "twofactorauth_get_tfa_config_for_user",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}