logout is now possible again
This commit is contained in:
@@ -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 }}
|
||||
Reference in New Issue
Block a user