fix var name

This commit is contained in:
2025-11-16 22:14:04 +10:00
parent c1a4fd13d5
commit b85d039c36
2 changed files with 8 additions and 8 deletions

View File

@@ -30,13 +30,13 @@ class EmailSubscribe extends Component
} }
// Simple rate limiting per session // Simple rate limiting per session
$attempts = session('subscribe_attempts', 0); // $attempts = session('subscribe_attempts', 0);
if ($attempts >= 5) { // if ($attempts >= 5) {
$this->success = false; // $this->success = false;
$this->message = 'Too many attempts. Please try again in a little while.'; // $this->message = 'Too many attempts. Please try again in a little while.';
return; // return;
} // }
session(['subscribe_attempts' => $attempts + 1]); // session(['subscribe_attempts' => $attempts + 1]);
$this->validate(); $this->validate();

View File

@@ -25,7 +25,7 @@ class UserWelcome extends Mailable
->markdown('emails.welcome') ->markdown('emails.welcome')
->with([ ->with([
'email' => $this->email, 'email' => $this->email,
'unsubscribe' => $this->unsubscribeLink 'unsubscribeLink' => $this->unsubscribeLink
]); ]);
} }
} }