Use stored auth credentials information for transparent() auth if the
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 22 Jul 2009 22:09:23 +0000 (16:09 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 22 Jul 2009 22:09:23 +0000 (16:09 -0600)
driver did not define new values.

framework/Auth/lib/Horde/Auth/Base.php

index e4f08cb..974da44 100644 (file)
@@ -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']
             );
         }