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()}