From e0451ef59a69eda29efa6bc22294b2bcf8b8b600 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 29 May 2020 11:31:40 +0200 Subject: Authentication infrastructure --- plugins/webbox/webbox.cpp | 4 ++++ plugins/webbox/webbox.h | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'plugins/webbox') diff --git a/plugins/webbox/webbox.cpp b/plugins/webbox/webbox.cpp index 09ac7c5..de8df85 100644 --- a/plugins/webbox/webbox.cpp +++ b/plugins/webbox/webbox.cpp @@ -943,3 +943,7 @@ void webbox_plugin::registerCommand(std::shared_ptr command) m_commands[command->getCommandName()] = command; }; +bool webbox_plugin::has_own_authentication() +{ + return true; +} diff --git a/plugins/webbox/webbox.h b/plugins/webbox/webbox.h index dd2fb93..cd4e21d 100644 --- a/plugins/webbox/webbox.h +++ b/plugins/webbox/webbox.h @@ -18,12 +18,16 @@ private: public: webbox_plugin(); ~webbox_plugin(); - std::string name(); + + std::string name() override; + std::string generate_page( std::function& GetServerParam, std::function& GetRequestParam, // request including body (POST...) std::function& SetResponseHeader // to be added to result string - ); + ) override; + + bool has_own_authentication() override; }; extern "C" BOOST_SYMBOL_EXPORT webbox_plugin webserver_plugin; -- cgit v1.2.3