Skip to content

Commit

Permalink
Add correct CSRF token to permissions page
Browse files Browse the repository at this point in the history
  • Loading branch information
shu8 committed Aug 31, 2023
1 parent 08f13d5 commit a9cebaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/uclapi/oauth/templates/permissions.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ <h2 class="card-title">
<button type="submit" class="authorise-button">
Authorise {{initial_data.app_name}}
</button>
{% csrf_token %}
<input type="hidden" name="signed_app_data" value='{{initial_data.signed_data}}' />
<input type="hidden" name="csrfmiddlewaretoken" value="{{request.COOKIES.csrftoken}}" />
</form>

<form method="post" action="/oauth/user/deny">
<button>Deny</button>
<button type="submit">Deny</button>
{% csrf_token %}
<input type="hidden" name="signed_app_data" value='{{initial_data.signed_data}}' />
<input type="hidden" name="csrfmiddlewaretoken" value="{{request.COOKIES.csrftoken}}" />
</form>
</div>

Expand Down

0 comments on commit a9cebaf

Please sign in to comment.