Skip to content

Commit 75ec7e5

Browse files
authored
Update mobile_apps.md
Fix validation check to only validate POST request body. #695
1 parent 799c647 commit 75ec7e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guides/mobile_apps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class LoginController extends BaseController
3434
],
3535
];
3636

37-
if (! $this->validate($rules)) {
37+
if (! $this->validateData($this->request->getPost(), $rules)) {
3838
return $this->response
3939
->setJSON(['errors' => $this->validator->getErrors()])
4040
->setStatusCode(422);

0 commit comments

Comments
 (0)