From 207d9c95785ff3141a0be5d72a53ca42bcc815b5 Mon Sep 17 00:00:00 2001 From: phanlyhuynh <32766920+phanlyhuynh@users.noreply.github.com> Date: Mon, 7 Sep 2020 02:12:03 +0700 Subject: [PATCH] Fix SMTP username and password shouldn't be required (#2287) --- framework/core/src/Mail/SmtpDriver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/core/src/Mail/SmtpDriver.php b/framework/core/src/Mail/SmtpDriver.php index b9791ab3b..eea13d0b0 100644 --- a/framework/core/src/Mail/SmtpDriver.php +++ b/framework/core/src/Mail/SmtpDriver.php @@ -34,8 +34,8 @@ class SmtpDriver implements DriverInterface 'mail_host' => 'required', 'mail_port' => 'nullable|integer', 'mail_encryption' => 'nullable|in:tls,ssl', - 'mail_username' => 'required', - 'mail_password' => 'required', + 'mail_username' => 'nullable|string', + 'mail_password' => 'nullable|string', ])->errors(); }