Skip to content

Firefly III: a personal finances manager

Include CSRF token for Sandstorm.

James Coleb68d5c4374a5
diff --git a/.sandstorm/sandstorm-pkgdef.capnp b/.sandstorm/sandstorm-pkgdef.capnp
index 175103b39f..c0493e5fb6 100644
--- a/.sandstorm/sandstorm-pkgdef.capnp
+++ b/.sandstorm/sandstorm-pkgdef.capnp
@@ -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"),
diff --git a/.sandstorm/screenshots/screenshot-1.png b/.sandstorm/screenshots/screenshot-1.png
new file mode 100644
index 0000000000..f72ceb48e7
Binary files /dev/null and b/.sandstorm/screenshots/screenshot-1.png differ
diff --git a/.sandstorm/screenshots/screenshot-2.png b/.sandstorm/screenshots/screenshot-2.png
new file mode 100644
index 0000000000..9301851850
Binary files /dev/null and b/.sandstorm/screenshots/screenshot-2.png differ
diff --git a/.sandstorm/screenshots/screenshot-3.png b/.sandstorm/screenshots/screenshot-3.png
new file mode 100644
index 0000000000..20fcab548f
Binary files /dev/null and b/.sandstorm/screenshots/screenshot-3.png differ
diff --git a/public/js/ff/index.js b/public/js/ff/index.js
index ba6c9993e1..1cd119c383 100644
--- a/public/js/ff/index.js
+++ b/public/js/ff/index.js
@@ -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});
}
diff --git a/resources/views/javascript/variables.twig b/resources/views/javascript/variables.twig
index 8d188af209..5fe2a12f60 100644
--- a/resources/views/javascript/variables.twig
+++ b/resources/views/javascript/variables.twig
@@ -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 }};
\ No newline at end of file
+var accountingConfig = {{ accounting|json_encode|raw }};
+var token = '{{ csrf_token() }}';
\ No newline at end of file