summaryrefslogtreecommitdiffstats
path: root/lib/kolab_api_controller.php
diff options
context:
space:
mode:
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) {