summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/api/httpauth.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/www/api/httpauth.inc.php b/www/api/httpauth.inc.php
index 1d20d31..8ae6bed 100644
--- a/www/api/httpauth.inc.php
+++ b/www/api/httpauth.inc.php
@@ -27,7 +27,9 @@ if (!$userservice->isLoggedOn()) {
authenticate();
} else {
$login = $userservice->login($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']);
- if (!$login) {
+ if ($login) {
+ $currentUser = $userservice->getCurrentObjectUser();
+ } else {
authenticate();
}
}