Make sure that login data is an array in taskLogin()

This commit is contained in:
Matias Griese
2021-08-18 13:41:04 +03:00
parent 43da7c909d
commit 2546cd35e0

View File

@@ -140,7 +140,7 @@ class LoginController extends AdminController
}
$post = $this->getPost();
$credentials = $post['data'] ?? [];
$credentials = (array)($post['data'] ?? []);
$login = $this->getLogin();
$config = $this->getConfig();