fix the logout button

This commit is contained in:
Joe Ardent 2023-09-23 15:22:45 -07:00
parent 1852c9b6ad
commit fd03e4a4db

View file

@ -6,11 +6,13 @@
Hello, {{ usr.username }}!
</div>
<div>
<button class="warning">
<input type="submit" value="sign out?">
</form>
</button>
<form action="/logout" enctype="application/x-www-form-urlencoded" method="post">
<button class="warning">
<input type="submit" value="sign out?">
</button>
</form>
</div>
{% else %}
<div class="header_logged_out">
Heya, why don't you <a href="/login">log in</a> or <a href="/signup">sign up</a>?