Add "none" as choice for MAIL_ENCRYPTION settings/install that translates to =NULL

This commit is contained in:
Darko Gjorgjijoski
2024-07-21 10:42:00 +02:00
parent 532a044bb9
commit 19bf467068
4 changed files with 4 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ class MailConfigurationController extends Controller
'mail_port' => config('mail.port'),
'mail_username' => config('mail.username'),
'mail_password' => config('mail.password'),
'mail_encryption' => config('mail.encryption'),
'mail_encryption' => is_null(config('mail.encryption')) ? 'none' : config('mail.encryption'),
'from_name' => config('mail.from.name'),
'from_mail' => config('mail.from.address'),
'mail_mailgun_endpoint' => config('services.mailgun.endpoint'),

View File

@@ -255,7 +255,7 @@ class EnvironmentManager
'MAIL_PORT' => $request->get('mail_port'),
'MAIL_USERNAME' => $request->get('mail_username'),
'MAIL_PASSWORD' => $request->get('mail_password'),
'MAIL_ENCRYPTION' => $request->get('mail_encryption'),
'MAIL_ENCRYPTION' => $request->get('mail_encryption') !== 'none' ? $request->get('mail_encryption') : 'null',
'MAIL_FROM_ADDRESS' => $request->get('from_mail'),
'MAIL_FROM_NAME' => $request->get('from_name'),
];

View File

@@ -200,7 +200,7 @@ const props = defineProps({
const emit = defineEmits(['submit-data', 'on-change-driver'])
let isShowPassword = ref(false)
const encryptions = reactive(['tls', 'ssl', 'starttls'])
const encryptions = reactive(['none', 'tls', 'ssl', 'starttls'])
const { t } = useI18n()
const mailDriverStore = useMailDriverStore()

View File

@@ -211,7 +211,7 @@ const mailDriverStore = useMailDriverStore()
const { t } = useI18n()
let isShowPassword = ref(false)
const encryptions = reactive(['tls', 'ssl', 'starttls'])
const encryptions = reactive(['none','tls', 'ssl', 'starttls'])
const getInputType = computed(() => {
if (isShowPassword.value) {