|
|
@@ -88,6 +88,15 @@ class AccountDataProvider extends BaseDataProvider
|
|
|
if ($domainID === FALSE) {
|
|
|
return "Error: Domain $maildomain not found";
|
|
|
}
|
|
|
+
|
|
|
+ logModuleCall(
|
|
|
+ 'kerioEmail',
|
|
|
+ __FUNCTION__,
|
|
|
+ $domainID,
|
|
|
+ 'Debug Add Account',
|
|
|
+ $this->formData
|
|
|
+ );
|
|
|
+
|
|
|
$active = $this->formData['status'] === 'active' ? TRUE : FALSE;
|
|
|
try {
|
|
|
$userID = $api->createUser($domainID, $this->formData['username'], $this->formData['password'], $active);
|
|
|
@@ -120,14 +129,6 @@ class AccountDataProvider extends BaseDataProvider
|
|
|
$fields['departmentName'] = $this->formData['department'];
|
|
|
$fields['profession'] = $this->formData['profession'];
|
|
|
|
|
|
- logModuleCall(
|
|
|
- 'kerioEmail',
|
|
|
- __FUNCTION__,
|
|
|
- $domainID,
|
|
|
- 'Debug Add Account',
|
|
|
- $userID
|
|
|
- );
|
|
|
-
|
|
|
return (new HtmlDataJsonResponse())->setMessageAndTranslate('emailAccountHasBeenAdded')->setStatusSuccess();
|
|
|
|
|
|
}
|