Bug #8498: Fix setting auth credentials in session for auto driver.
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 17 Aug 2009 23:49:57 +0000 (17:49 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 17 Aug 2009 23:49:57 +0000 (17:49 -0600)
framework/Auth/lib/Horde/Auth/Auto.php

index d10d35a..3d2f243 100644 (file)
@@ -72,14 +72,14 @@ class Horde_Auth_Auto extends Horde_Auth_Base
      */
     protected function _transparent()
     {
-        $username = (!empty($this->_params['requestuser']) && isset($_REQUEST['username']))
+        $this->_credentials['userId'] = (!empty($this->_params['requestuser']) && isset($_REQUEST['username']))
             ? $_REQUEST['username']
             : $this->_params['username'];
-
-        return Horde_Auth::setAuth($username, array(
-            'transparent' => 1,
+        $this->_credentials['credentials'] = array(
             'password' => isset($this->_params['password']) ? $this->_params['password'] : null
-        ));
+        );
+
+        return true;
     }
 
 }