From: Chuck Hagenbuch Date: Wed, 15 Jul 2009 14:28:55 +0000 (-0400) Subject: stub _authenticate in the auto driver to avoid a compile-time error X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=942c09b8caf9c931224e39d33571958c1d29f6a7;p=horde.git stub _authenticate in the auto driver to avoid a compile-time error --- diff --git a/framework/Auth/lib/Horde/Auth/Auto.php b/framework/Auth/lib/Horde/Auth/Auto.php index be5976090..d9120d479 100644 --- a/framework/Auth/lib/Horde/Auth/Auto.php +++ b/framework/Auth/lib/Horde/Auth/Auto.php @@ -51,6 +51,21 @@ class Horde_Auth_Auto extends Horde_Auth_Base } /** + * Horde_Exception should pass a message string (if any) in the message + * field, and the REASON_* constant in the code field (defaults to + * REASON_MESSAGE). + * + * @param string $userID The userID to check. + * @param array $credentials An array of login credentials. + * + * @throws Horde_Exception + */ + protected function _authenticate($userId, $credentials) + { + throw new Horde_Exception('unsupported'); + } + + /** * Automatic authentication: Set the user allowed IP block. * * @return boolean Whether or not the client is allowed. diff --git a/framework/Auth/lib/Horde/Auth/Base.php b/framework/Auth/lib/Horde/Auth/Base.php index 17d23cc94..dd20cd662 100644 --- a/framework/Auth/lib/Horde/Auth/Base.php +++ b/framework/Auth/lib/Horde/Auth/Base.php @@ -132,7 +132,6 @@ abstract class Horde_Auth_Base */ abstract protected function _authenticate($userId, $credentials); - /** * Adds a set of authentication credentials. *