mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-30 09:56:11 +01:00
Make sure that login data is an array in taskLogin()
This commit is contained in:
@@ -140,7 +140,7 @@ class LoginController extends AdminController
|
||||
}
|
||||
|
||||
$post = $this->getPost();
|
||||
$credentials = $post['data'] ?? [];
|
||||
$credentials = (array)($post['data'] ?? []);
|
||||
$login = $this->getLogin();
|
||||
$config = $this->getConfig();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user