mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
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
Block a user