From ef649d8c96a193f0ac6bec58b772c32a1c78dbf4 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 14 Dec 2016 18:52:12 -0600 Subject: [PATCH] Fix CSRF tokens for datasync restart forms --- tailbone/templates/datasync/changes/index.mako | 1 + tailbone/templates/mobile/datasync.mako | 1 + 2 files changed, 2 insertions(+) diff --git a/tailbone/templates/datasync/changes/index.mako b/tailbone/templates/datasync/changes/index.mako index dd143f85..b98e1a56 100644 --- a/tailbone/templates/datasync/changes/index.mako +++ b/tailbone/templates/datasync/changes/index.mako @@ -18,6 +18,7 @@ <%def name="grid_tools()"> ${h.form(url('datasync.restart'), name='restart-datasync')} + ${h.csrf_token(request)} ${h.end_form()} diff --git a/tailbone/templates/mobile/datasync.mako b/tailbone/templates/mobile/datasync.mako index 1f72702a..2f21a2a2 100644 --- a/tailbone/templates/mobile/datasync.mako +++ b/tailbone/templates/mobile/datasync.mako @@ -4,5 +4,6 @@ <%def name="title()">DataSync ${h.form(url('datasync.restart'))} +${h.csrf_token(request)} ${h.submit('restart', "Restart DataSync Daemon", id='datasync-restart')} ${h.end_form()}