Dictionary::getCaptcha

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Dictionary
  4. getCaptcha
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/webform/options/dictionary.php
  • Класс: Bitrix\Crm\WebForm\Options\Dictionary
  • Вызов: Dictionary::getCaptcha
public function getCaptcha(): array
{
	$hasOwn = WebForm\ReCaptcha::getKey(2) && WebForm\ReCaptcha::getSecret(2);
	$hasDefaults = WebForm\ReCaptcha::getDefaultKey(2) && WebForm\ReCaptcha::getDefaultSecret(2);
	return [
		'hasKeys' => $hasDefaults || $hasOwn,
	];
}

Добавить комментарий