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
$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();