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
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:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user