Skip to content

Commit

Permalink
fix validation
Browse files Browse the repository at this point in the history
  • Loading branch information
peaklabs-dev committed Nov 21, 2024
1 parent 19ce01f commit 81f8371
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/Livewire/Notifications/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ public function syncData(bool $toModel = false)
public function sendTestEmail()
{
try {
$this->validate([
'testEmailAddress' => 'required|email',
], [
'testEmailAddress.required' => 'Test email address is required.',
'testEmailAddress.email' => 'Please enter a valid email address.',
]);

$executed = RateLimiter::attempt(
'test-email:'.$this->team->id,
$perMinute = 0,
Expand Down

0 comments on commit 81f8371

Please sign in to comment.