mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-15 09:46:06 +01:00
User admin-form as action for the nonce. Add it to the login form too
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -11,6 +11,6 @@
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{{ nonce_field('admin-post-blueprints', 'admin-nonce') }}
|
||||
{{ nonce_field('admin-form', 'admin-nonce') }}
|
||||
|
||||
</form>
|
||||
|
||||
@@ -19,5 +19,5 @@
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{{ nonce_field('admin-post-blueprints', 'admin-nonce') }}
|
||||
{{ nonce_field('admin-form', 'admin-nonce') }}
|
||||
</form>
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
|
||||
<form method="post" action="{{ base_url_relative }}">
|
||||
{% block form %}{% endblock %}
|
||||
|
||||
{{ nonce_field('admin-form', 'admin-nonce') }}
|
||||
</form>
|
||||
</section>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user