mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-07 14:06:26 +02:00
Merge branch 'develop' of https://github.com/getgrav/grav-plugin-admin into develop
This commit is contained in:
@@ -185,8 +185,7 @@ class Admin
|
||||
$grav = $this->grav;
|
||||
|
||||
$this->setMessage($this->translate('PLUGIN_ADMIN.LOGIN_LOGGED_IN'), 'info');
|
||||
$redirect_route = $this->uri->route();
|
||||
$grav->redirect($redirect_route);
|
||||
$grav->redirect($form['redirect']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,9 +13,9 @@
|
||||
|
||||
<form method="post" action="{{ base_url_relative }}">
|
||||
<div class="padding">
|
||||
{% block form %}{% endblock %}
|
||||
|
||||
{{ nonce_field('admin-form', 'admin-nonce') }}
|
||||
{% block form %}{% endblock %}
|
||||
<input type="hidden" name="redirect" value="{{ uri.url }}" />
|
||||
{{ nonce_field('admin-form', 'admin-nonce') }}
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user