From 20f36d519aa48ecf491b71eaf032a885d3cb8faa Mon Sep 17 00:00:00 2001 From: James Collins Date: Sun, 16 Nov 2025 23:14:55 +1000 Subject: [PATCH] fix timings --- app/Livewire/EmailSubscribe.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Livewire/EmailSubscribe.php b/app/Livewire/EmailSubscribe.php index 26d6b69..5e312b9 100644 --- a/app/Livewire/EmailSubscribe.php +++ b/app/Livewire/EmailSubscribe.php @@ -36,7 +36,7 @@ class EmailSubscribe extends Component } // 2. Block submits in first 10 seconds after render - if (now()->timestamp - $this->renderedAt < 7) { + if (now()->timestamp - $this->renderedAt < 4) { $this->success = false; $this->message = 'That was a bit quick. Please wait a few seconds and try again.'; return; @@ -50,7 +50,7 @@ class EmailSubscribe extends Component $now = time(); - if ($lastAttempt && ($now - $lastAttempt) < 30) { + if ($lastAttempt && ($now - $lastAttempt) < 20) { $this->success = false; $this->message = 'Please wait a little before trying again.'; return;