summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorGirish Ramakrishnan <mail@girish.in>2016-09-02 11:33:26 -0700
committerJoram Wilander <jwawilander@gmail.com>2016-09-02 14:33:26 -0400
commit6c085594e47eeabbe5084a0e5c231af3e18527b6 (patch)
treead1eb6b3ad1dc813a574ffb615ca31b328bca451 /webapp
parentf32eb525f3fa0828a23f589d765c267e3b2aea86 (diff)
downloadchat-6c085594e47eeabbe5084a0e5c231af3e18527b6.tar.gz
chat-6c085594e47eeabbe5084a0e5c231af3e18527b6.tar.bz2
chat-6c085594e47eeabbe5084a0e5c231af3e18527b6.zip
mail: allow PLAIN auth over non-tls connections (#3900)
This allows mattermost to use a non-tls connection with a SMTP server that supports PLAIN auth (but not LOGIN). The go library explicitly allows PLAIN auth over non-tls connections - https://golang.org/src/net/smtp/auth.go#L55 Fixes #2929
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/admin_console/connection_security_dropdown_setting.jsx15
-rw-r--r--webapp/i18n/en.json2
2 files changed, 17 insertions, 0 deletions
diff --git a/webapp/components/admin_console/connection_security_dropdown_setting.jsx b/webapp/components/admin_console/connection_security_dropdown_setting.jsx
index 09768049e..06be7f78e 100644
--- a/webapp/components/admin_console/connection_security_dropdown_setting.jsx
+++ b/webapp/components/admin_console/connection_security_dropdown_setting.jsx
@@ -30,6 +30,20 @@ const CONNECTION_SECURITY_HELP_TEXT = (
<tr>
<td>
<FormattedMessage
+ id='admin.connectionSecurityPlain'
+ defaultMessage='PLAIN'
+ />
+ </td>
+ <td>
+ <FormattedMessage
+ id='admin.connectionSecurityPlainDescription'
+ defaultMessage='Mattermost will connect and authenticate over an unsecure connection.'
+ />
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <FormattedMessage
id='admin.connectionSecurityTls'
defaultMessage='TLS'
/>
@@ -66,6 +80,7 @@ export default class ConnectionSecurityDropdownSetting extends React.Component {
id='connectionSecurity'
values={[
{value: '', text: Utils.localizeMessage('admin.connectionSecurityNone', 'None')},
+ {value: 'PLAIN', text: Utils.localizeMessage('admin.connectionSecurityPlain')},
{value: 'TLS', text: Utils.localizeMessage('admin.connectionSecurityTls', 'TLS (Recommended)')},
{value: 'STARTTLS', text: Utils.localizeMessage('admin.connectionSecurityStart')}
]}
diff --git a/webapp/i18n/en.json b/webapp/i18n/en.json
index 7dfd477f0..7d502351f 100644
--- a/webapp/i18n/en.json
+++ b/webapp/i18n/en.json
@@ -199,6 +199,8 @@
"admin.compliance_table.userId": "Requested By",
"admin.connectionSecurityNone": "None",
"admin.connectionSecurityNoneDescription": "Mattermost will connect over an unsecure connection.",
+ "admin.connectionSecurityPlain": "PLAIN",
+ "admin.connectionSecurityPlainDescription": "Mattermost will connect and authenticate over an unsecure connection.",
"admin.connectionSecurityStart": "STARTTLS",
"admin.connectionSecurityStartDescription": "Takes an existing insecure connection and attempts to upgrade it to a secure connection using TLS.",
"admin.connectionSecurityTest": "Test Connection",