|
@@ -70,14 +70,15 @@ function zimbraSingle_ChangePassword($params)
|
|
|
"blubb"
|
|
"blubb"
|
|
|
);
|
|
);
|
|
|
$customfields = array(
|
|
$customfields = array(
|
|
|
- '399' => $params['password'],
|
|
|
|
|
- '400' => $params['password']
|
|
|
|
|
|
|
+ $customFieldIDs[0] => $params['password'],
|
|
|
|
|
+ $customFieldIDs[1] => $params['password']
|
|
|
);
|
|
);
|
|
|
$postData = array(
|
|
$postData = array(
|
|
|
'serviceid' => $params['serviceid'],
|
|
'serviceid' => $params['serviceid'],
|
|
|
'customfields' => base64_encode(serialize($customfields)),
|
|
'customfields' => base64_encode(serialize($customfields)),
|
|
|
);
|
|
);
|
|
|
$results = localAPI('UpdateClientProduct', $postData);
|
|
$results = localAPI('UpdateClientProduct', $postData);
|
|
|
|
|
+
|
|
|
$response = zimbraSingleChangePassword($params['customfields'], 'no');
|
|
$response = zimbraSingleChangePassword($params['customfields'], 'no');
|
|
|
} else {
|
|
} else {
|
|
|
$response = zimbraSingleChangePassword($params['customfields'], 'yes');
|
|
$response = zimbraSingleChangePassword($params['customfields'], 'yes');
|