Security
Update minimum password strength
This function sets the minimum password strength for cPanel & WHM accounts.
Note
If you do not specify a value for a parameter, the system will retain the existing setting.
get/setminimumpasswordstrengths
Query parameters
createacctinteger
Example:50
The minimum password strength for new cPanel accounts.
defaultinteger
Example:50
The minimum password strength for all services.
ftpinteger
Example:50
The minimum password strength for FTP accounts.
listinteger
Example:50
The minimum password strength for mailing lists.
mysqlinteger
Example:50
The minimum password strength for MySQL® database users.
passwdinteger
Example:50
The minimum password strength for WHM user or system accounts.
postgresinteger
Example:50
The minimum password strength for PostgreSQL® database users.
sshkeyinteger
Example:50
The minimum password strength for SSH keys.
virtualinteger
Example:50
The minimum password strength for mail, FTP, Web Disk, and WebDAV accounts.
Response
HTTP Request was successful.
Example response
{
"metadata": {
"command": "setminimumpasswordstrengths",
"reason": "OK",
"result": 1,
"version": 1
}
}