From: Michael M Slusarz Date: Mon, 17 Aug 2009 23:49:57 +0000 (-0600) Subject: Bug #8498: Fix setting auth credentials in session for auto driver. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fc7961c51333c6a413e9e75e7358aef34b3e1115;p=horde.git Bug #8498: Fix setting auth credentials in session for auto driver. --- diff --git a/framework/Auth/lib/Horde/Auth/Auto.php b/framework/Auth/lib/Horde/Auth/Auto.php index d10d35a24..3d2f243a6 100644 --- a/framework/Auth/lib/Horde/Auth/Auto.php +++ b/framework/Auth/lib/Horde/Auth/Auto.php @@ -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; } }