summaryrefslogtreecommitdiff
path: root/lib/Kolab/DAV/Auth/HTTPBasic.php
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-03-20 11:07:17 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-03-20 11:07:17 (GMT)
commit444d8a530861351c4ba1cd8a99b78173affc29d8 (patch)
treee1769313de0f0c3f06704bb45142f80a961590c9 /lib/Kolab/DAV/Auth/HTTPBasic.php
parente3ec5ce29748b2ad7d1f848faa3dea4512d6de30 (diff)
downloadiRony-444d8a530861351c4ba1cd8a99b78173affc29d8.tar.gz
Pass-through the pre-generatd free/busy data from Kolab's free/busy service
Diffstat (limited to 'lib/Kolab/DAV/Auth/HTTPBasic.php')
-rw-r--r--lib/Kolab/DAV/Auth/HTTPBasic.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Kolab/DAV/Auth/HTTPBasic.php b/lib/Kolab/DAV/Auth/HTTPBasic.php
index 036d54f..3b551ab 100644
--- a/lib/Kolab/DAV/Auth/HTTPBasic.php
+++ b/lib/Kolab/DAV/Auth/HTTPBasic.php
@@ -33,8 +33,9 @@ use Kolab\Utils\CacheAPC;
*/
class HTTPBasic extends \Sabre\DAV\Auth\Backend\AbstractBasic
{
- // Make the current user name availabel to all classes
+ // Make the current user name available to all classes
public static $current_user = null;
+ public static $current_pass = null;
/**
* Validates a username and password
@@ -87,12 +88,14 @@ class HTTPBasic extends \Sabre\DAV\Auth\Backend\AbstractBasic
if ($success) {
self::$current_user = $auth['user'];
+ self::$current_pass = $password;
if (!$auth_user) {
$cache->set($user, $auth['user']);
}
// register a rcube_user object for global access
$rcube->user = new rcube_user(null, array('username' => $auth['user'], 'mail_host' => $auth['host']));
+ $_SESSION['imap_host'] = $auth['host'];
}
return $success;