|
|
@@ -22,6 +22,7 @@ class InfoSettingDataProvider extends BaseDataProvider
|
|
|
|
|
|
public function read()
|
|
|
{
|
|
|
+ $domain = $this->getWhmcsParamByKey('domain');
|
|
|
$maildomain = $this->actionElementId;
|
|
|
$api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0');
|
|
|
try {
|
|
|
@@ -41,7 +42,7 @@ class InfoSettingDataProvider extends BaseDataProvider
|
|
|
$api->logout();
|
|
|
// find own domain
|
|
|
foreach($securitys as $security) {
|
|
|
- if($security['name'] === $maildomain){
|
|
|
+ if($security['name'] === $domain){
|
|
|
$domainID = $security['id'];
|
|
|
$security['twoFAEnabled'] == true ? $tfaenabled = 'on' : $tfaenabled = 'off' ;
|
|
|
$security['isDkimEnabled'] == true ? $dkimsigenabled = 'on' : $dkimsigenabled = 'off';
|