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/weblog/weblog.cpp | 4 ++++ plugins/weblog/weblog.h | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'plugins/weblog') diff --git a/plugins/weblog/weblog.cpp b/plugins/weblog/weblog.cpp index c18f120..1e1b6b2 100644 --- a/plugins/weblog/weblog.cpp +++ b/plugins/weblog/weblog.cpp @@ -441,3 +441,7 @@ std::string weblog_plugin::generate_page( } } +bool weblog_plugin::has_own_authentication() +{ + return false; +} diff --git a/plugins/weblog/weblog.h b/plugins/weblog/weblog.h index 28b4ab3..0994b91 100644 --- a/plugins/weblog/weblog.h +++ b/plugins/weblog/weblog.h @@ -8,13 +8,15 @@ public: weblog_plugin(); ~weblog_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 weblog_plugin webserver_plugin; -- cgit v1.2.3