Skip to content

Commit

Permalink
Merge pull request #303 from sunu/mission-reset-csrf
Browse files Browse the repository at this point in the history
Add csrf token to post request that resets mission state.
  • Loading branch information
willingc committed Jul 17, 2014
2 parents 51ca568 + 897e789 commit 03ba2ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mysite/static/js/missions/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ $(function() {
function() {
$.post(
OH.Page['post_url'],
{ mission_parts: OH.Page['mission_parts'] },
{ 'csrfmiddlewaretoken': $.cookie('csrftoken'),
mission_parts: OH.Page['mission_parts'] },
function(response) {
var items = ['#success-msg', '#next-mission-link'];
var len = items.length;
Expand Down

0 comments on commit 03ba2ed

Please sign in to comment.