Skip to content

Commit d50f60b

Browse files
ademayoishakhsuvarov
authored andcommitted
encrypt smtp password
1 parent c17e82e commit d50f60b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/Backend/etc/adminhtml/system.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,10 @@
349349
<field id="transport">smtp</field>
350350
</depends>
351351
</field>
352-
<field id="password" translate="label comment" type="password" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
352+
<field id="password" translate="label comment" type="obscure" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
353353
<label>Password</label>
354-
<comment>Username</comment>
354+
<comment>Password</comment>
355+
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
355356
<depends>
356357
<field id="transport">smtp</field>
357358
</depends>

app/code/Magento/Email/etc/config.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
<disable>0</disable>
2828
<host>localhost</host>
2929
<port>25</port>
30+
<password backend_model="Magento\Config\Model\Config\Backend\Encrypted" />
3031
<set_return_path>0</set_return_path>
3132
<transport>sendmail</transport>
3233
<auth>none</auth>

0 commit comments

Comments
 (0)