diff --git a/include/class.auth.php b/include/class.auth.php index 83a9fcf0dc42bf254705d3b6180279f1c772d58d..9a226c48ebb699aef0b6901aa0c2c616c3b1e203 100644 --- a/include/class.auth.php +++ b/include/class.auth.php @@ -345,6 +345,10 @@ abstract class StaffAuthenticationBackend extends AuthenticationBackend { return $staff; } + function authenticate($username, $password) { + return false; + } + // Generic authentication key for staff's backend is the username protected function getAuthKey($staff) { @@ -418,6 +422,10 @@ abstract class UserAuthenticationBackend extends AuthenticationBackend { return true; } + function authenticate($username, $password) { + return false; + } + static function signOut($user) { global $ost; @@ -736,10 +744,6 @@ class AuthTokenAuthentication extends UserAuthenticationBackend { return $user; } - function authenticate($username, $password) { - return false; - } - } UserAuthenticationBackend::register(AuthTokenAuthentication);