Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Add csrf_token to deactivate.html POST; #664
Browse files Browse the repository at this point in the history
This actually uncovered a bug in Aspen where empty POST bodies cause an
exception in the request parser. We needed the csrf_token anyway, of
course, but really we're masking an underlying bug (to work around it we
would have needed *some* field, anyway).
  • Loading branch information
chadwhitacre committed Mar 8, 2013
1 parent f2ed7ef commit cb1ef0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion www/%participant_id/deactivate.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ <h2 class="top"><span>Deactivate</span></h2>

</div>
<div class="nav level-1">
<button class="selected larger">Deactivate</button>
<input type="hidden" name="csrf_token"
value="{{ csrf_token }}" />
<button class="selected larger"
type="submit">Deactivate</button>
</div>
</form>
</div>
Expand Down

0 comments on commit cb1ef0e

Please sign in to comment.