fixed all POST routes to use new csrf middleware

This commit is contained in:
Julian Lam
2014-09-17 16:07:26 -04:00
parent 4f6b3055ff
commit a061079995
10 changed files with 30 additions and 22 deletions

View File

@@ -19,6 +19,7 @@ define('uploader', function() {
uploadForm[0].reset();
uploadForm.attr('action', route);
uploadForm.find('#params').val(JSON.stringify(params));
uploadForm.find('#csrfToken').val($('#csrf').attr('data-csrf'));
if(fileSize) {
uploadForm.find('#upload-file-size').html(fileSize);