Description
This function removes security questions and answers for a specific cPanel or Webmail user.
Warning:
We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
Important:
After this functions runs, the system prompts the user to redefine security questions on the next login attempt.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Input |
Type |
Description |
Possible values |
Example |
account |
string |
The cPanel or Wemail user for which to reset security questions. |
A valid cPanel account username or Webmail email address. |
user |
Returns
Return |
Type |
Description |
Possible values |
Example |
status |
string |
Whether the function reset the security questions. |
|
"" |
reason |
string |
A reason for failure. Note: This function only returns a reason value if there was an error. |
A string that describes the error. |
This is an error message. |
result |
boolean |
Whether the function succeeded. |
|
1 |