summaryrefslogtreecommitdiffhomepage
path: root/plugins/redirect
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/redirect')
-rw-r--r--plugins/redirect/redirect.cpp5
-rw-r--r--plugins/redirect/redirect.h7
2 files changed, 9 insertions, 3 deletions
diff --git a/plugins/redirect/redirect.cpp b/plugins/redirect/redirect.cpp
index 91d5f64..796926d 100644
--- a/plugins/redirect/redirect.cpp
+++ b/plugins/redirect/redirect.cpp
@@ -62,3 +62,8 @@ std::string redirect_plugin::generate_page(
}
}
+bool redirect_plugin::has_own_authentication()
+{
+ return false;
+}
+
diff --git a/plugins/redirect/redirect.h b/plugins/redirect/redirect.h
index 403cc16..472f9f2 100644
--- a/plugins/redirect/redirect.h
+++ b/plugins/redirect/redirect.h
@@ -8,13 +8,14 @@ public:
redirect_plugin();
~redirect_plugin();
- std::string name();
+ std::string name() override;
std::string generate_page(
std::function<std::string(const std::string& key)>& GetServerParam,
std::function<std::string(const std::string& key)>& GetRequestParam, // request including body (POST...)
std::function<void(const std::string& key, const std::string& value)>& SetResponseHeader // to be added to result string
- );
-
+ ) override;
+
+ bool has_own_authentication() override;
};
extern "C" BOOST_SYMBOL_EXPORT redirect_plugin webserver_plugin;