This function configures the two-factor authentication settings for an account.
uapi --output=jsonpretty \ --user=username \ TwoFactorAuth \ set_user_configuration \ secret='JBSWY3DPEHPK3PXP' \ tfa_token='528112'
{- "apiversion": 3,
- "func": "set_user_configuration",
- "module": "TwoFactorAuth",
- "result": {
- "data": {
- "tfa_configured": 1
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}