Include CSRF token for Sandstorm.

This commit is contained in:
James Cole
2017-02-04 09:02:07 +01:00
parent dc348a72c8
commit b68d5c4374
6 changed files with 7 additions and 6 deletions

View File

@@ -66,9 +66,9 @@ const pkgdef :Spk.PackageDefinition = (
# Sizes are given in device-independent pixels, so if you took these
# screenshots on a Retina-style high DPI screen, divide each dimension by two.
(width = 1200, height = 1000, png = embed "screenshot-1.png"),
(width = 1200, height = 1000, png = embed "screenshot-2.png"),
(width = 1200, height = 1518, png = embed "screenshot-3.png"),
(width = 1200, height = 1000, png = embed "screenshots/screenshot-1.png"),
(width = 1200, height = 1000, png = embed "screenshots/screenshot-2.png"),
(width = 1200, height = 1518, png = embed "screenshots/screenshot-3.png"),
],
changeLog = (defaultText = embed "changelog.md"),

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 KiB

View File

@@ -8,7 +8,7 @@
* See the LICENSE file for details.
*/
/** global: Tour, showTour, accountFrontpageUri, billCount, accountExpenseUri, accountRevenueUri */
/** global: Tour, showTour, accountFrontpageUri, token, billCount, accountExpenseUri, accountRevenueUri */
$(function () {
"use strict";
@@ -34,7 +34,7 @@ $(function () {
function endTheTour() {
"use strict";
$.post('json/end-tour');
$.post('json/end-tour', {_token: token});
}

View File

@@ -26,4 +26,5 @@ var frac_digits = {{ localeconv.frac_digits }};
var noDataForChart = '{{ trans('firefly.no_data_for_chart')|escape }}';
var showFullList = '{{ trans('firefly.show_full_list') }}';
var showOnlyTop = '{{ trans('firefly.show_only_top',{number:listLength}) }}';
var accountingConfig = {{ accounting|json_encode|raw }};
var accountingConfig = {{ accounting|json_encode|raw }};
var token = '{{ csrf_token() }}';