This function updates the Two-Factor Authentication (2FA) configuration for the given cPanel user.
additional property | object The cPanel user account for which to set the 2FA config. |
HTTP Request was successful.
object |
{- "example": {
- "email": {
- "user@example.com": {
- "secret": "QLLIU5WTY3UTJGNG"
}
}, - "primary_account": {
- "secret": "QLLIU5WTY3UTJGNG"
}, - "team": {
- "team_user@example": {
- "secret": "QLLIU5WTY3UTJGNG"
}
}
}
}
{- "metadata": {
- "command": "twofactorauth_set_tfa_config_for_user",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}