Updated sender email to existing "from-address" (#12044)

refs #12043

- On updating From-address from Members settings in Labs, we send a confirmation email to the updated address with magic link for verification
- Previously, no explicit sender email was being set for this so fallback config address was used
- This updates the sender address to use the current from address for "from-address" update emails
This commit is contained in:
Rishabh Garg 2020-07-13 17:57:31 +05:30 committed by GitHub
parent 06c7152f4b
commit ead073ad68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,7 @@ function createSettingsInstance(config) {
logging.warn(message.text);
}
let msg = Object.assign({
from: config.getEmailFromAddress(),
subject: 'Update email address',
forceTextContent: true
}, message);