logout is now possible again

This commit is contained in:
2026-06-07 23:04:12 +02:00
parent 92e7ea4667
commit d771ebba13
2 changed files with 11 additions and 4 deletions

View File

@@ -1,5 +1,4 @@
{{ define "base.html" }}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
@@ -39,7 +38,7 @@
<a href="/profile/settings">Account Settings</a>
<a href="/profile/activity">Activity Log</a>
<hr class="dropdown-divider">
<button class="logout-btn"
<button id="logout-btn" class="logout-btn"
hx-post="/api/logout"
hx-on::after-request="window.location.href='/login'">
Log Out
@@ -53,7 +52,6 @@
{{ template "content" . }}
</main>
<script src="/assets/js/api.js"></script>
</body>
</html>
{{ end }}