Skip to content

Commit 799c647

Browse files
authored
Merge pull request #695 from miguel-rn/develop
fix: only validate data from POST request body
2 parents a5096be + eed24a4 commit 799c647

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Controllers/LoginController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function loginAction(): RedirectResponse
4747
// like the password, can only be validated properly here.
4848
$rules = $this->getValidationRules();
4949

50-
if (! $this->validate($rules)) {
50+
if (! $this->validateData($this->request->getPost(), $rules)) {
5151
return redirect()->back()->withInput()->with('errors', $this->validator->getErrors());
5252
}
5353

src/Controllers/MagicLinkController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function loginAction()
6565
{
6666
// Validate email format
6767
$rules = $this->getValidationRules();
68-
if (! $this->validate($rules)) {
68+
if (! $this->validateData($this->request->getPost(), $rules)) {
6969
return redirect()->route('magic-link')->with('errors', $this->validator->getErrors());
7070
}
7171

src/Controllers/RegisterController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function registerAction(): RedirectResponse
100100
// like the password, can only be validated properly here.
101101
$rules = $this->getValidationRules();
102102

103-
if (! $this->validate($rules)) {
103+
if (! $this->validateData($this->request->getPost(), $rules)) {
104104
return redirect()->back()->withInput()->with('errors', $this->validator->getErrors());
105105
}
106106

0 commit comments

Comments
 (0)