summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2016-01-23 14:02:46 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2016-01-25 01:56:14 +0100
commit78fa5a8435b150859e7fe106a7068e76575212f6 (patch)
treec2fb798e729e1d132cebd078566739c4293c9193
parentb841c0b8e39e98f9cda8b86404eb3c5b79d175f0 (diff)
downloadweb-78fa5a8435b150859e7fe106a7068e76575212f6.tar.gz
web-78fa5a8435b150859e7fe106a7068e76575212f6.tar.bz2
web-78fa5a8435b150859e7fe106a7068e76575212f6.zip
All forms should contain a non-empty action
-rw-r--r--accounts/templates/admin/create_account.html2
-rw-r--r--accounts/templates/admin/disable_account.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/accounts/templates/admin/create_account.html b/accounts/templates/admin/create_account.html
index 208410c..6dae77c 100644
--- a/accounts/templates/admin/create_account.html
+++ b/accounts/templates/admin/create_account.html
@@ -12,7 +12,7 @@
Der Benutzer bekommt eine Mail, mit der er sich dann ganz normal
ein Passwort setzen kann.
</p>
-<form action="" method="post" class="form-horizontal">
+<form action="{{ url_for('.create_account') }}" method="post" class="form-horizontal">
{% for field in form %}
{{ render_field(field) }}
{% endfor %}
diff --git a/accounts/templates/admin/disable_account.html b/accounts/templates/admin/disable_account.html
index 9842d6c..47bc1d4 100644
--- a/accounts/templates/admin/disable_account.html
+++ b/accounts/templates/admin/disable_account.html
@@ -12,7 +12,7 @@
Der Benutzer wird davon nicht benachrichtigt, mach das also nur mit
Accounts, die sicher Spammer sind!
</p>
-<form action="" method="post" class="form-horizontal">
+<form action="{{ url_for('.disable_account') }}" method="post" class="form-horizontal">
{% for field in form %}
{{ render_field(field) }}
{% endfor %}