From b85d039c36b6ccac6bc7912a873188684b8317d5 Mon Sep 17 00:00:00 2001 From: James Collins Date: Sun, 16 Nov 2025 22:14:04 +1000 Subject: [PATCH] fix var name --- app/Livewire/EmailSubscribe.php | 14 +++++++------- app/Mail/UserWelcome.php | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/Livewire/EmailSubscribe.php b/app/Livewire/EmailSubscribe.php index 36bc8b6..11edb42 100644 --- a/app/Livewire/EmailSubscribe.php +++ b/app/Livewire/EmailSubscribe.php @@ -30,13 +30,13 @@ class EmailSubscribe extends Component } // Simple rate limiting per session - $attempts = session('subscribe_attempts', 0); - if ($attempts >= 5) { - $this->success = false; - $this->message = 'Too many attempts. Please try again in a little while.'; - return; - } - session(['subscribe_attempts' => $attempts + 1]); +// $attempts = session('subscribe_attempts', 0); +// if ($attempts >= 5) { +// $this->success = false; +// $this->message = 'Too many attempts. Please try again in a little while.'; +// return; +// } +// session(['subscribe_attempts' => $attempts + 1]); $this->validate(); diff --git a/app/Mail/UserWelcome.php b/app/Mail/UserWelcome.php index 9b7cc30..891ae17 100644 --- a/app/Mail/UserWelcome.php +++ b/app/Mail/UserWelcome.php @@ -25,7 +25,7 @@ class UserWelcome extends Mailable ->markdown('emails.welcome') ->with([ 'email' => $this->email, - 'unsubscribe' => $this->unsubscribeLink + 'unsubscribeLink' => $this->unsubscribeLink ]); } }