mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix #5856: Fix SMTPS Config Migration
This commit is contained in:
parent
f48deb82b1
commit
9aafdb775c
@ -4,6 +4,7 @@ HumHub Changelog
|
||||
1.12.2 (Unreleased)
|
||||
-------------------
|
||||
- Fix #5851: Admin User Settings cannot saved
|
||||
- Fix #5856: Fix SMTPS Config Migration
|
||||
|
||||
|
||||
1.12.1 (August 15, 2022)
|
||||
|
@ -15,7 +15,7 @@ class m220606_205507_mailer_settings extends Migration
|
||||
{
|
||||
$setting = Setting::findOne(['name' => 'mailer.encryption', 'module_id' => 'base']);
|
||||
if ($setting !== null) {
|
||||
if ($setting->value === 'tls' || $setting->value === 'ssl') {
|
||||
if ($setting->value === 'ssl') {
|
||||
Yii::$app->settings->set('mailer.useSmtps', true);
|
||||
}
|
||||
$setting->delete();
|
||||
|
Loading…
x
Reference in New Issue
Block a user