Skip to content

Commit

Permalink
Fix the Logout link
Browse files Browse the repository at this point in the history
It was sending a "GET" request, not a "POST" request.
  • Loading branch information
pcraig3 committed Sep 13, 2024
1 parent e637d3b commit f75b00a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ The format is based on Keep a Changelog, and this project adheres to Semantic Ve

### Fixed

- "Logout" link was broken, so it's fixed
- "Preview" link in markdown editor has "USA Blue" link text
- Specify exact Python version in Dockerfile
- Fix 2 broken cover images
Expand Down
5 changes: 4 additions & 1 deletion bloom_nofos/users/templates/users/user_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
{% include "includes/page_heading.html" with title="Your account" only %}

<div class="subsection_edit--header--view font-sans-md">
<a href="{% url 'users:logout' %}">Logout</a>
<form action="{% url 'users:logout' %}" method="post">
{% csrf_token %}
<button class="usa-button--unstyled" type="submit">Logout</button>
</form>
</div>
</div>

Expand Down

0 comments on commit f75b00a

Please sign in to comment.