From fc7961c51333c6a413e9e75e7358aef34b3e1115 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 17 Aug 2009 17:49:57 -0600 Subject: [PATCH] Bug #8498: Fix setting auth credentials in session for auto driver. --- framework/Auth/lib/Horde/Auth/Auto.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; } } -- 2.11.0