Browse Source

debug zimbra access

andre 5 years ago
parent
commit
2132e45fed
1 changed files with 9 additions and 9 deletions
  1. 9 9
      zimbraSingle.inc

+ 9 - 9
zimbraSingle.inc

@@ -37,15 +37,6 @@ function zimbraSingleGetAccess()
             ->where('packageid', '=', $packageid)
             ->where('packageid', '=', $packageid)
             ->get();
             ->get();
     }
     }
-
-    logModuleCall(
-        'zimbrasingle',
-        __FUNCTION__,
-        $params,
-        "debug: serverID",
-        $serverID
-    );
-
     $servers = Capsule::table('tblservers')
     $servers = Capsule::table('tblservers')
         ->select('ipaddress', 'username', 'password')
         ->select('ipaddress', 'username', 'password')
         ->where('id', '=', $serverID[0]->server)
         ->where('id', '=', $serverID[0]->server)
@@ -58,6 +49,15 @@ function zimbraSingleGetAccess()
     if ($adminPassDecrypt['result'] == 'success') {
     if ($adminPassDecrypt['result'] == 'success') {
         $accessData['adminPass'] = $adminPassDecrypt['password'];
         $accessData['adminPass'] = $adminPassDecrypt['password'];
     }
     }
+
+    logModuleCall(
+        'zimbrasingle',
+        __FUNCTION__,
+        $params,
+        "debug: accessData",
+        $accessData
+    );
+
     return $accessData;
     return $accessData;
 }
 }