Skip to content

Commit

Permalink
fix(serviceprovider): Fix LoginCaptchaServiceProvider validation
Browse files Browse the repository at this point in the history
- Throw validationErrorsResponse instead of validator
- Handle validation failure
  • Loading branch information
guanguans committed Oct 17, 2023
1 parent 97a4cf2 commit 10f6d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LoginCaptchaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ protected function bootingCaptcha(): self
]);

if ($validator->fails()) {
throw new HttpResponseException($validator);
throw new HttpResponseException($this->validationErrorsResponse($validator));
}
}
});
Expand Down

0 comments on commit 10f6d58

Please sign in to comment.