Update forgot email captcha config

pull/4875/head
Daniel Supernault 2024-01-22 05:51:50 -07:00
rodzic c26a3d2817
commit 96366ab3de
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 23740873EE6F76A1
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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!';
}

Wyświetl plik

@ -65,7 +65,7 @@
</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>
<div class="d-flex flex-grow-1">
{!! Captcha::display(['data-theme' => 'dark']) !!}