mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-06 08:55:36 +02:00
Handle the special case of message post-login
This commit is contained in:
@@ -179,7 +179,7 @@ class Admin
|
||||
/** @var Grav $grav */
|
||||
$grav = $this->grav;
|
||||
|
||||
$this->setMessage($this->translate('PLUGIN_ADMIN.LOGIN_LOGGED_IN'), 'info');
|
||||
$this->setMessage($this->grav['language']->translate('PLUGIN_ADMIN.LOGIN_LOGGED_IN', [$this->user->language]), 'info');
|
||||
|
||||
$redirect_route = $this->uri->route();
|
||||
$grav->redirect($redirect_route);
|
||||
|
||||
Reference in New Issue
Block a user