andre hai 5 meses
pai
achega
427d0a6a3f
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      app/UI/Client/EmailAccount/Providers/AccountDataProvider.php

+ 10 - 0
app/UI/Client/EmailAccount/Providers/AccountDataProvider.php

@@ -62,6 +62,16 @@ class AccountDataProvider extends BaseDataProvider
             return "Error: Domain $maildomain not found";
             return "Error: Domain $maildomain not found";
         }
         }
         $active = $this->formData['status'] === 'active' ? TRUE : FALSE;
         $active = $this->formData['status'] === 'active' ? TRUE : FALSE;
+
+        $usercount = $api->countUser($domainId);
+            logModuleCall(
+                'kerioEmail',
+                __FUNCTION__,
+                $usercount,
+                'Debug Error',
+                $maildomain
+            );
+
         try {
         try {
             $userID = $api->createUser($domainID, $this->formData['username'], $this->formData['password'], $active)['result'][0]['id'];
             $userID = $api->createUser($domainID, $this->formData['username'], $this->formData['password'], $active)['result'][0]['id'];
         } catch (KerioApiException $error) {
         } catch (KerioApiException $error) {