aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--webmentions_ssg/templates/base.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/webmentions_ssg/templates/base.html b/webmentions_ssg/templates/base.html
index fabfaaf..5cd521b 100644
--- a/webmentions_ssg/templates/base.html
+++ b/webmentions_ssg/templates/base.html
@@ -44,7 +44,10 @@ SPDX-License-Identifier: BSD-3-Clause
href='{{ url_for("root.received") }}'>Received</a>
<a class="nav-link{% if request.endpoint == 'root.sent' %} active{% endif %}"
href='{{ url_for("root.sent") }}'>Sent</a>
- <a class="nav-link" href="{{ url_for("root.logout") }}">Logout</a>
+ <form action="{{ url_for("root.logout") }}" method="post" class="m-0">
+ <input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
+ <button type="submit" class="nav-link border-0 bg-transparent">Logout</button>
+ </form>
</div>
{% endif %}
</div>