Jelajahi Sumber

test function createuser

andre 3 tahun lalu
induk
melakukan
d1ca680a94
2 mengubah file dengan 9 tambahan dan 9 penghapusan
  1. 9 0
      api/cwp7/Admin.php
  2. 0 9
      cwp7.php

+ 9 - 0
api/cwp7/Admin.php

@@ -120,6 +120,15 @@ class cwp7_Admin {
             "encodepass"    => true,
             "debug"         => 1,
         );
+
+		logModuleCall(
+			'cwp7',
+			__FUNCTION__,
+			$data,
+			'Debug',
+			$params
+		);
+
         return $this->doRequest('account', 'add', $data);
 	}
 	/**

+ 0 - 9
cwp7.php

@@ -118,15 +118,6 @@ function cwp7_CreateAccount($params) {
 		$response = $cwp7->createAccount($data);
 	}
 	if($response['status'] != 'OK') {
-
-		logModuleCall(
-			'cwp7',
-			__FUNCTION__,
-			$data,
-			'Debug',
-			$response
-		);
-
 		return 'Error: ' . $response['msj'];
 	}
 	return 'success';