fix timings

This commit is contained in:
2025-11-16 23:14:55 +10:00
parent e358e9fb5d
commit 20f36d519a

View File

@@ -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;