From 50e93fc98c0a2ea3937e8fd7938f7a57fb908649 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 22 Jul 2009 16:09:23 -0600 Subject: [PATCH] Use stored auth credentials information for transparent() auth if the driver did not define new values. --- framework/Auth/lib/Horde/Auth/Base.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/Auth/lib/Horde/Auth/Base.php b/framework/Auth/lib/Horde/Auth/Base.php index e4f08cb5d..974da44c5 100644 --- a/framework/Auth/lib/Horde/Auth/Base.php +++ b/framework/Auth/lib/Horde/Auth/Base.php @@ -204,8 +204,8 @@ abstract class Horde_Auth_Base { if ($this->_transparent()) { return Horde_Auth::setAuth( - $this->_credentials['userId'], - $this->_credentials['credentials'], + empty($this->_credentials['userId']) ? Horde_Auth::getAuth() : $this->_credentials['userId'], + empty($this->_credentials['credentials']) ? Horde_Auth::getCredential() : $this->_credentials['credentials'], $this->_credentials['params'] ); } -- 2.11.0