IMPR: Login forms
This commit is contained in:
parent
f6b150b866
commit
7d0b766882
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue