Skip to content

Commit

Permalink
v2.0.15 - whmcs 8.7 ~ auto initialisation config
Browse files Browse the repository at this point in the history
  • Loading branch information
bakcay committed Sep 18, 2023
1 parent 605fb2d commit 9a059e4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions modules/registrars/domainnameapi/domainnameapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Module WHMCS-DNA
* @package DomainNameApi
* @version 2.0.14
* @version 2.0.15
*/

use \WHMCS\Domain\TopLevel\ImportItem;
Expand Down Expand Up @@ -46,10 +46,12 @@ function domainnameapi_getConfigArray($params) {
$testmode = $params["API_TestMode"];


// $sysMsg = domainnameapi_parse_cache('user_'.$username.$password.$testmode, 100, function () use ($username, $password, $testmode) {
$sysMsg = domainnameapi_parse_cache('user_'.$username.md5($password).$testmode, 100, function () use ($username, $password, $testmode) {
$dna = new \DomainNameApi\DomainNameAPI_PHPLibrary($username, $password, $testmode);
$details = $dna->GetResellerDetails();

$sysMsg='';

if ($details['result'] != 'OK') {
$sysMsg = "Username and password combination not correct";
} else {
Expand All @@ -62,7 +64,9 @@ function domainnameapi_getConfigArray($params) {

}

// });
return $sysMsg;

});

}

Expand Down

0 comments on commit 9a059e4

Please sign in to comment.