User admin-form as action for the nonce. Add it to the login form too

This commit is contained in:
Flavio Copes
2015-11-09 15:09:48 +01:00
parent 567c1dac01
commit 21236b2fb9
4 changed files with 5 additions and 3 deletions

View File

@@ -15,6 +15,6 @@
<button class="button primary">{{ "PLUGIN_ADMIN.CONTINUE"|tu }}</button>
</div>
{{ nonce_field('admin-post-blueprints', 'admin-nonce') }}
{{ nonce_field('admin-form', 'admin-nonce') }}
</form>

View File

@@ -11,6 +11,6 @@
{% endif %}
{% endfor %}
{{ nonce_field('admin-post-blueprints', 'admin-nonce') }}
{{ nonce_field('admin-form', 'admin-nonce') }}
</form>

View File

@@ -19,5 +19,5 @@
{% endfor %}
{% endif %}
{{ nonce_field('admin-post-blueprints', 'admin-nonce') }}
{{ nonce_field('admin-form', 'admin-nonce') }}
</form>

View File

@@ -10,6 +10,8 @@
<form method="post" action="{{ base_url_relative }}">
{% block form %}{% endblock %}
{{ nonce_field('admin-form', 'admin-nonce') }}
</form>
</section>
{% endblock %}