summaryrefslogtreecommitdiffstats
path: root/lib/kolab_api_controller.php
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-06-16 23:53:34 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-06-16 23:55:28 +0100
commit5fed875f3ce92e4488f0e2ecff1d62699f5734e1 (patch)
tree14b6ed4afd5a33d18a70c5e862555126a0e9799e /lib/kolab_api_controller.php
parent11456a9f9618aedbdf67208100fa263996834a39 (diff)
downloadwebadmin-5fed875f3ce92e4488f0e2ecff1d62699f5734e1.tar.gz
Allow the domain name space to be passed on to authentication
Diffstat (limited to 'lib/kolab_api_controller.php')
-rw-r--r--lib/kolab_api_controller.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/kolab_api_controller.php b/lib/kolab_api_controller.php
index d96d4ac..e984c42 100644
--- a/lib/kolab_api_controller.php
+++ b/lib/kolab_api_controller.php
@@ -268,6 +268,8 @@ class kolab_api_controller
*/
private function authenticate($request, $postdata)
{
+ //console("Authenticating with postdata", $postdata);
+
$valid = false;
// destroy old session
@@ -278,7 +280,7 @@ class kolab_api_controller
session_start();
$_SESSION['user'] = new User();
- $valid = $_SESSION['user']->authenticate($postdata['username'], $postdata['password']);
+ $valid = $_SESSION['user']->authenticate($postdata['username'], $postdata['password'], $postdata['domain']);
// start new (PHP) session
if ($valid) {