TwoFactorAuth
Two-Factor Settings
Create 2FA authentication code
This function generates an authentication code to enable configuration of two-factor authentication.
get/TwoFactorAuth/generate_user_configuration
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "generate_user_configuration",
"module": "TwoFactorAuth",
"result": {
"data": {
"otpauth_str": "otpauth://totp/Example%20cPanel%20L.L.C.:fakedomain?secret=S3I4WUY7MTHRMMWN&issuer=Example%20cPanel%20L.L.C.",
"secret": "S3I4WUY7MTHRMMWN"
},
"status": 1
}
}