summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-09-03 15:16:53 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-09-03 15:16:53 +0100
commit50abe6a1f61f368c63aa84c7283b3cfa447c81e9 (patch)
treeacbcb35444ceac995c46d55301515da9cd60e95e
parent577a094c6b786d9a96367e14fc308efe3b550adb (diff)
downloadwebadmin-50abe6a1f61f368c63aa84c7283b3cfa447c81e9.tar.gz
Select the domain before doing anything else
-rw-r--r--lib/hosted/kolab_client_task_signup.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/hosted/kolab_client_task_signup.php b/lib/hosted/kolab_client_task_signup.php
index e5ba005..7813da7 100644
--- a/lib/hosted/kolab_client_task_signup.php
+++ b/lib/hosted/kolab_client_task_signup.php
@@ -152,9 +152,13 @@ class kolab_client_task_signup extends kolab_client_task
return;
}
+ $this->api->get('system.select_domain', array('domain', $data['domain']));
+
// Remove domain from $data before adding user
unset($data['domain']);
+ $data['cn'] = $this->api->post('form_value.generate', $data);
+
// Add user
$result = $this->api->post('user.add', null, $data);