summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-04-05 13:56:03 +0100
committerHarrison Healey <harrisonmhealey@gmail.com>2017-04-05 08:56:03 -0400
commit92dd07def82cff9d73cbc9cb9cfa53b8d98b84a8 (patch)
tree2f3348283b678874b1465d266d325274d00106a2
parent22005f876f455c50c131f6c0660d50b6974598a5 (diff)
downloadchat-92dd07def82cff9d73cbc9cb9cfa53b8d98b84a8.tar.gz
chat-92dd07def82cff9d73cbc9cb9cfa53b8d98b84a8.tar.bz2
chat-92dd07def82cff9d73cbc9cb9cfa53b8d98b84a8.zip
PLT-5904 (WebApp): Config for skip email server cert verification. (#5991)
-rw-r--r--webapp/components/admin_console/email_settings.jsx19
-rwxr-xr-xwebapp/i18n/en.json2
2 files changed, 21 insertions, 0 deletions
diff --git a/webapp/components/admin_console/email_settings.jsx b/webapp/components/admin_console/email_settings.jsx
index 6cf09f653..d54ab3906 100644
--- a/webapp/components/admin_console/email_settings.jsx
+++ b/webapp/components/admin_console/email_settings.jsx
@@ -34,6 +34,7 @@ export default class EmailSettings extends AdminSettings {
config.EmailSettings.ConnectionSecurity = this.state.connectionSecurity;
config.EmailSettings.EnableEmailBatching = this.state.enableEmailBatching;
config.ServiceSettings.EnableSecurityFixAlert = this.state.enableSecurityFixAlert;
+ config.EmailSettings.SkipServerCertificateVerification = this.state.skipServerCertificateVerification;
return config;
}
@@ -50,6 +51,7 @@ export default class EmailSettings extends AdminSettings {
smtpPort: config.EmailSettings.SMTPPort,
connectionSecurity: config.EmailSettings.ConnectionSecurity,
enableEmailBatching: config.EmailSettings.EnableEmailBatching,
+ skipServerCertificateVerification: config.EmailSettings.SkipServerCertificateVerification,
enableSecurityFixAlert: config.ServiceSettings.EnableSecurityFixAlert
};
}
@@ -275,6 +277,23 @@ export default class EmailSettings extends AdminSettings {
disabled={!this.state.sendEmailNotifications}
/>
<BooleanSetting
+ id='skipServerCertificateVerification'
+ label={
+ <FormattedMessage
+ id='admin.email.skipServerCertificateVerification.title'
+ defaultMessage='Skip Server Certificate Verification: '
+ />
+ }
+ helpText={
+ <FormattedMessage
+ id='admin.email.skipServerCertificateVerification.description'
+ defaultMessage='When true, Mattermost will not verify the email server certificate.'
+ />
+ }
+ value={this.state.skipServerCertificateVerification}
+ onChange={this.handleChange}
+ />
+ <BooleanSetting
id='enableSecurityFixAlert'
label={
<FormattedMessage
diff --git a/webapp/i18n/en.json b/webapp/i18n/en.json
index b66444168..92a97af41 100755
--- a/webapp/i18n/en.json
+++ b/webapp/i18n/en.json
@@ -283,6 +283,8 @@
"admin.email.requireVerificationDescription": "Typically set to true in production. When true, Mattermost requires email verification after account creation prior to allowing login. Developers may set this field to false so skip sending verification emails for faster development.",
"admin.email.requireVerificationTitle": "Require Email Verification: ",
"admin.email.selfPush": "Manually enter Push Notification Service location",
+ "admin.email.skipServerCertificateVerification.description": "When true, Mattermost will not verify the email server certificate.",
+ "admin.email.skipServerCertificateVerification.title": "Skip Server Certificate Verification: ",
"admin.email.smtpPasswordDescription": " Obtain this credential from administrator setting up your email server.",
"admin.email.smtpPasswordExample": "E.g.: \"yourpassword\", \"jcuS8PuvcpGhpgHhlcpT1Mx42pnqMxQY\"",
"admin.email.smtpPasswordTitle": "SMTP Server Password:",