diff --git a/system/Honeypot/Honeypot.php b/system/Honeypot/Honeypot.php index e0879f157ed2..a53b84686e9a 100644 --- a/system/Honeypot/Honeypot.php +++ b/system/Honeypot/Honeypot.php @@ -42,10 +42,6 @@ public function __construct(HoneypotConfig $config) { $this->config = $config; - if (! $this->config->hidden) { - throw HoneypotException::forNoHiddenValue(); - } - if (empty($this->config->container) || strpos($this->config->container, '{template}') === false) { $this->config->container = '
'; } diff --git a/tests/system/Honeypot/HoneypotTest.php b/tests/system/Honeypot/HoneypotTest.php index 28b7348a7e11..f98d61294ed8 100644 --- a/tests/system/Honeypot/HoneypotTest.php +++ b/tests/system/Honeypot/HoneypotTest.php @@ -133,13 +133,6 @@ public function testHasContent(): void $this->assertTrue($this->honeypot->hasContent($this->request)); } - public function testConfigHidden(): void - { - $this->config->hidden = ''; - $this->expectException(HoneypotException::class); - $this->honeypot = new Honeypot($this->config); - } - public function testConfigTemplate(): void { $this->config->template = '';