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.
1 parent 63a6fdf commit 37d8c71Copy full SHA for 37d8c71
docs/addons/jwt.md
@@ -135,7 +135,10 @@ class LoginController extends BaseController
135
136
// Validate credentials
137
if (! $this->validateData($this->request->getPost(), $rules)) {
138
- return $this->failValidationErrors($this->validator->getErrors(), 422);
+ return $this->fail(
139
+ ['errors' => $this->validator->getErrors()],
140
+ $this->codes['unauthorized']
141
+ );
142
}
143
144
// Get the credentials for login
0 commit comments