Skip to content

Commit

Permalink
Added csrf_token passing to django optional_logout
Browse files Browse the repository at this point in the history
fixes: #5250

Added CHANGE log entry

(cherry picked from commit bd8cdc3)
  • Loading branch information
chtaylo2 authored and mdellweg committed May 2, 2024
1 parent 69f04f3 commit 846fbbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/5250.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed bug which prevented the Pulp API usaging from a web browser
2 changes: 1 addition & 1 deletion pulpcore/app/templates/rest_framework/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<ul class="nav navbar-nav pull-right">
{% block userlinks %}
{% if user.is_authenticated %}
{% optional_logout request user %}
{% optional_logout request user csrf_token %}
{% else %}
{% optional_login request %}
{% endif %}
Expand Down

0 comments on commit 846fbbd

Please sign in to comment.