(dev/core#2258) SMTP Password - Read+write via 'crypto.token'
authorTim Otten <totten@civicrm.org>
Fri, 18 Dec 2020 23:55:02 +0000 (15:55 -0800)
committerTim Otten <totten@civicrm.org>
Fri, 8 Jan 2021 07:04:36 +0000 (23:04 -0800)
commit03bfb187852277d99fb5158b93aa313655ef12e1
tree52fc4161ff418d7f217580eeb0a60b0af9db6683
parent8daf06d6f09e1ee626ee69306192b06aa1fab98b
(dev/core#2258) SMTP Password - Read+write via 'crypto.token'

Before
------

The format of the 'smtpPassword' subfield depends on the available PECL extensions:

* The field is ciphertext... if PHP has `mcrypt` enabled
* The field is plaintext... if PHP has `mcrypt` disabled

After
-----

The format of the `smtpPassword` subfield is specified by `crypto.token` which means:

* The field is ciphertext... if it begins with `chr(2)`
* The field is plaintext... if it begins with any printable character
CRM/Admin/Form/Setting/Smtp.php
CRM/Utils/Mail.php