|
|
@@ -391,7 +391,7 @@ function zimbraSingle_CreateAccount($params)
|
|
|
$attrs["displayName"] = $attrs["gn"] . " " . $attrs["sn"];
|
|
|
$passDecrypt = localAPI('DecryptPassword', array('password2' => $params['customfields']['password']));
|
|
|
if ($passDecrypt['result'] == 'success') {
|
|
|
- $params['customfields']['password'] = $passDecrypt['password'];
|
|
|
+ $password = $passDecrypt['password'];
|
|
|
} else {
|
|
|
logModuleCall(
|
|
|
'zimbrasingle',
|
|
|
@@ -414,7 +414,7 @@ function zimbraSingle_CreateAccount($params)
|
|
|
return "Error: serviceclass not available";
|
|
|
}
|
|
|
$attrs['zimbraCOSId'] = $cosID;
|
|
|
- $id = $apiAccountManager->createAccount($accountName, $params['customfields']['password'], $attrs);
|
|
|
+ $id = $apiAccountManager->createAccount($accountName, $password, $attrs);
|
|
|
if(is_a($id, "Exception")) {
|
|
|
logModuleCall(
|
|
|
'zimbrasingle',
|