andre 5 anni fa
parent
commit
8206810abb
1 ha cambiato i file con 9 aggiunte e 1 eliminazioni
  1. 9 1
      zimbraSingle.php

+ 9 - 1
zimbraSingle.php

@@ -425,7 +425,15 @@ function zimbraSingle_CreateAccount($params)
         );
         return "Error: account $accountName not created";
     }
-    return 'success';
+    Capsule::table('tblhosting')
+    ->where('id', '=', $params['id'])
+    ->update(
+        array(
+            'username' => $accountName,
+            'password' => $params['customfields']['password'],
+        )
+    );
+return 'success';
 }
 
 /**