Merge pull request #4875 from pixelfed/staging

Update forgot email captcha config
This commit is contained in:
daniel 2024-01-22 05:52:27 -07:00 committed by GitHub
commit 1f6577c947
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ class UserEmailForgotController extends Controller
'username.exists' => 'This username is no longer active or does not exist!' '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'; $rules['h-captcha-response'] = 'required|captcha';
$messages['h-captcha-response.required'] = 'You need to complete the captcha!'; $messages['h-captcha-response.required'] = 'You need to complete the captcha!';
} }

View File

@ -65,7 +65,7 @@
</div> </div>
</div> </div>
@if(config('captcha.enabled')) @if(config('captcha.enabled') || config('captcha.active.login') || config('captcha.active.register'))
<label class="font-weight-bold small text-muted">Captcha</label> <label class="font-weight-bold small text-muted">Captcha</label>
<div class="d-flex flex-grow-1"> <div class="d-flex flex-grow-1">
{!! Captcha::display(['data-theme' => 'dark']) !!} {!! Captcha::display(['data-theme' => 'dark']) !!}