From 96366ab3de86064460bb6114e4dfd9ced97b69fd Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 22 Jan 2024 05:51:50 -0700 Subject: [PATCH] Update forgot email captcha config --- app/Http/Controllers/UserEmailForgotController.php | 2 +- resources/views/auth/email/forgot.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/UserEmailForgotController.php b/app/Http/Controllers/UserEmailForgotController.php index c97add2a7..4baa4ead4 100644 --- a/app/Http/Controllers/UserEmailForgotController.php +++ b/app/Http/Controllers/UserEmailForgotController.php @@ -34,7 +34,7 @@ class UserEmailForgotController extends Controller 'username.exists' => 'This username is no longer active or does not exist!' ]; - if(config('captcha.enabled') || config('captcha.active.register')) { + if(config('captcha.enabled') || config('captcha.active.login') || config('captcha.active.register')) { $rules['h-captcha-response'] = 'required|captcha'; $messages['h-captcha-response.required'] = 'You need to complete the captcha!'; } diff --git a/resources/views/auth/email/forgot.blade.php b/resources/views/auth/email/forgot.blade.php index 73d01811c..898d19fb5 100644 --- a/resources/views/auth/email/forgot.blade.php +++ b/resources/views/auth/email/forgot.blade.php @@ -65,7 +65,7 @@ - @if(config('captcha.enabled')) + @if(config('captcha.enabled') || config('captcha.active.login') || config('captcha.active.register'))
{!! Captcha::display(['data-theme' => 'dark']) !!}