handle form protection component being loaded - unlock cf turnstile field
CI / testsuite (mysql, 8.2, ) (push) Successful in 3m7s
CI / testsuite (mysql, 8.4, ) (push) Successful in 4m24s
CI / testsuite (pgsql, 8.2, ) (push) Successful in 3m6s
CI / testsuite (pgsql, 8.4, ) (push) Successful in 4m14s
CI / testsuite (sqlite, 8.2, ) (push) Successful in 3m5s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Successful in 3m6s
CI / testsuite (sqlite, 8.4, ) (push) Successful in 4m11s
CI / Coding Standard & Static Analysis (push) Failing after 2m4s

This commit is contained in:
bs
2026-11-14 18:54:34 -08:00
parent 35fab648f7
commit 0cc1894445
@@ -83,6 +83,10 @@ class ContactUsComponent extends Component {
$this->setConfig($config);
parent::initialize($config); // TODO: Change the autogenerated stub
$this->table = TableRegistry::getTableLocator()->get($this->getConfig('model'));
if (Configure::read('ContactUs.fields.turnstile') && $this->getController()->components()->has('FormProtection')) {
$this->getController()->components()->get('FormProtection')
->unlockFields('cf-turnstile-response');
}
}
/**