From 04b61d1f3852cf5a14ad9912f7cb71635512ebf6 Mon Sep 17 00:00:00 2001
From: enahum <nahumhbl@gmail.com>
Date: Thu, 5 May 2016 10:36:58 -0300
Subject: PLT-2797 Remove LDAP Password Field Name setting (#2884)

---
 webapp/components/admin_console/ldap_settings.jsx | 31 -----------------------
 1 file changed, 31 deletions(-)

(limited to 'webapp/components/admin_console/ldap_settings.jsx')

diff --git a/webapp/components/admin_console/ldap_settings.jsx b/webapp/components/admin_console/ldap_settings.jsx
index 01402a588..3ced65e50 100644
--- a/webapp/components/admin_console/ldap_settings.jsx
+++ b/webapp/components/admin_console/ldap_settings.jsx
@@ -69,7 +69,6 @@ class LdapSettings extends React.Component {
         config.LdapSettings.ConnectionSecurity = this.state.connectionSecurity.trim();
         config.LdapSettings.SkipCertificateVerification = this.state.skipCertificateVerification;
         config.LdapSettings.LoginFieldName = this.refs.LoginFieldName.value.trim();
-        config.LdapSettings.PasswordFieldName = this.refs.PasswordFieldName.value.trim();
 
         let QueryTimeout = DEFAULT_QUERY_TIMEOUT;
         if (!isNaN(parseInt(ReactDOM.findDOMNode(this.refs.QueryTimeout).value, 10))) {
@@ -634,36 +633,6 @@ class LdapSettings extends React.Component {
                         </div>
                     </div>
 
-                    <div className='form-group'>
-                        <label
-                            className='control-label col-sm-4'
-                            htmlFor='PasswordFieldName'
-                        >
-                            <FormattedMessage
-                                id='admin.ldap.passwordFieldTitle'
-                                defaultMessage='Password Field Name:'
-                            />
-                        </label>
-                        <div className='col-sm-8'>
-                            <input
-                                type='text'
-                                className='form-control'
-                                id='PasswordFieldName'
-                                ref='PasswordFieldName'
-                                placeholder={Utils.localizeMessage('admin.ldap.passwordFieldEx', 'Ex "LDAP Password"')}
-                                defaultValue={this.props.config.LdapSettings.PasswordFieldName}
-                                onChange={this.handleChange}
-                                disabled={!this.state.enable}
-                            />
-                            <p className='help-text'>
-                                <FormattedMessage
-                                    id='admin.ldap.passwordFieldDesc'
-                                    defaultMessage='The placeholder text that appears in the password field on the login page. Defaults to "LDAP Password".'
-                                />
-                            </p>
-                        </div>
-                    </div>
-
                     <div className='form-group'>
                         <div className='col-sm-12'>
                             {serverError}
-- 
cgit v1.2.3-1-g7c22

