We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
$credentials
1 parent 604eac1 commit 82f983aCopy full SHA for 82f983a
src/Controllers/LoginController.php
@@ -51,7 +51,8 @@ public function loginAction(): RedirectResponse
51
return redirect()->back()->withInput()->with('errors', $this->validator->getErrors());
52
}
53
54
- $credentials = $this->request->getPost(setting('Auth.validFields'));
+ /** @var array $credentials */
55
+ $credentials = $this->request->getPost(setting('Auth.validFields')) ?? [];
56
$credentials = array_filter($credentials);
57
$credentials['password'] = $this->request->getPost('password');
58
$remember = (bool) $this->request->getPost('remember');
0 commit comments