andre 5 years ago
parent
commit
a4031d9075
1 changed files with 2 additions and 2 deletions
  1. 2 2
      zimbraSingle.php

+ 2 - 2
zimbraSingle.php

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