Applicable to:
- SolusVM
Question
How to configure login from WHMCS to SolusVM administrator area through API credentials?
Answer
-
Connect to WHMCS server over SSH.
-
Create a copy of
solusvmpro.php
file:# cp -a {whmcs_root}/modules/servers/solusvmpro/soluvmpro.php{,.copy}
replace {whmcs_root} with the actual path to WHMCS web root.
-
In
{whmcs_root}/modules/servers/solusvmpro/soluvmpro.php
change section:CONFIG_TEXT: $code = '<form action="' . ( $fwdurl ) . '/admincp/login.php" method="post" target="_blank">
<input type="hidden" name="username" value="ADMINUSERNAME" />
<input type="hidden" name="password" value="ADMINPASSOWRD" />
<input type="submit" name="Submit" value="Login" />
</form>';to
CONFIG_TEXT: $code = '<form action="' . ( $fwdurl ) . '/admincp/login-api.php" method="post" target="_blank">
<input type="hidden" name="api_id" value="'.$params["serverusername"].'" />
<input type="hidden" name="api_key" value="'.sha1($params["serverpassword"]).'" />
<input type="submit" name="Submit" class="btn btn-sm btn-default" value="Login" />
</form>';
Comments
0 commentsPlease sign in to leave a comment.