From 10f6d587ada0a504c39bc838a0f90fb735eb9063 Mon Sep 17 00:00:00 2001 From: yaozm Date: Tue, 17 Oct 2023 14:37:10 +0800 Subject: [PATCH] fix(serviceprovider): Fix LoginCaptchaServiceProvider validation - Throw validationErrorsResponse instead of validator - Handle validation failure --- src/LoginCaptchaServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LoginCaptchaServiceProvider.php b/src/LoginCaptchaServiceProvider.php index 46d1f21..81c16cc 100644 --- a/src/LoginCaptchaServiceProvider.php +++ b/src/LoginCaptchaServiceProvider.php @@ -165,7 +165,7 @@ protected function bootingCaptcha(): self ]); if ($validator->fails()) { - throw new HttpResponseException($validator); + throw new HttpResponseException($this->validationErrorsResponse($validator)); } } });