IMPR: Login forms

This commit is contained in:
Tony Air 2024-03-26 04:58:54 +02:00
parent f6b150b866
commit 7d0b766882

View File

@ -22,7 +22,7 @@ class LoginHandler extends MemberAuthenticatorLoginHandler
{
$form = parent::loginForm();
if (Director::isLive() && $form->get_protector()) {
if (self::config()->get('enable_captcha') && Director::isLive() && $form->get_protector()) {
$form->enableSpamProtection();
}
$form->addExtraClass('legacy');