Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix validation

peaklabs-dev81f837138dbe
diff --git a/app/Livewire/Notifications/Email.php b/app/Livewire/Notifications/Email.php
index 94b5e17c2f..fcedf13056 100644
--- a/app/Livewire/Notifications/Email.php
+++ b/app/Livewire/Notifications/Email.php
@@ -138,6 +138,13 @@ class Email extends Component
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,