From b3e12b975064f0873bdb4d2834cae75925387d6b Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Mon, 10 Aug 2026 23:28:03 +0200 Subject: feat(core): add received webmention admin actions Add authenticated delete and reverify actions to the received webmentions admin view and protect them with CSRF validation. Enable CSRF protection globally while exempting the public Webmention endpoint. --- webmentions_ssg/forms/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'webmentions_ssg/forms') diff --git a/webmentions_ssg/forms/__init__.py b/webmentions_ssg/forms/__init__.py index 0c54999..c386eb1 100644 --- a/webmentions_ssg/forms/__init__.py +++ b/webmentions_ssg/forms/__init__.py @@ -41,3 +41,7 @@ class EndpointForm(FlaskForm): AllowedHostname(), ], ) + + +class AdminActionForm(FlaskForm): + submit = SubmitField("Confirm") -- cgit v1.3.1