fix var name
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user