fix: name/from address required for resend

This commit is contained in:
Andras Bacsai 2024-03-27 11:28:12 +01:00
parent d51e70bcaa
commit 3d3d31ef29

View File

@ -58,6 +58,8 @@ public function submitResend() {
try {
$this->resetErrorBag();
$this->validate([
'settings.smtp_from_address' => 'required|email',
'settings.smtp_from_name' => 'required',
'settings.resend_api_key' => 'required'
]);
$this->settings->save();
@ -90,6 +92,8 @@ public function submit()
try {
$this->resetErrorBag();
$this->validate([
'settings.smtp_from_address' => 'required|email',
'settings.smtp_from_name' => 'required',
'settings.smtp_host' => 'required',
'settings.smtp_port' => 'required|numeric',
'settings.smtp_encryption' => 'nullable',