From 942c09b8caf9c931224e39d33571958c1d29f6a7 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Wed, 15 Jul 2009 10:28:55 -0400 Subject: [PATCH] stub _authenticate in the auto driver to avoid a compile-time error --- framework/Auth/lib/Horde/Auth/Auto.php | 15 +++++++++++++++ framework/Auth/lib/Horde/Auth/Base.php | 1 - 2 files changed, 15 insertions(+), 1 deletion(-) 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. * -- 2.11.0