Description
This function generates an authentication code to enable configuration of two-factor authentication.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
This function does not accept parameters.
Returns
Return |
Type |
Description |
Possible values |
Example |
otpauth_str |
string |
A one-time authentication URL to encode as the QR code. |
A valid otpauth URL. |
|
secret |
string |
A generated code for use with two-factor authentication. |
A valid security code. |
S3I4WUY7MTHRMMWN |