itizawa 6 lat temu
rodzic
commit
4123c6953c

+ 12 - 3
src/client/js/components/Admin/Security/LdapAuthTestModal.jsx

@@ -10,6 +10,16 @@ import AdminLdapSecurityContainer from '../../../services/AdminLdapSecurityConta
 
 
 class LdapAuthTestModal extends React.Component {
 class LdapAuthTestModal extends React.Component {
 
 
+  constructor(props) {
+    super(props);
+
+    this.testLdapCredentials = this.testLdapCredentials.bind(this);
+  }
+
+  testLdapCredentials() {
+    // TODO GW-770 implement auth test
+  }
+
   render() {
   render() {
     const { t } = this.props;
     const { t } = this.props;
 
 
@@ -33,14 +43,13 @@ class LdapAuthTestModal extends React.Component {
               <input className="form-control" type="password" name="password" />
               <input className="form-control" type="password" name="password" />
             </div>
             </div>
           </div>
           </div>
-
           <div>
           <div>
             <h5>Logs</h5>
             <h5>Logs</h5>
             <textarea id="taLogs" className="col-xs-12" rows="4" readOnly />
             <textarea id="taLogs" className="col-xs-12" rows="4" readOnly />
           </div>
           </div>
         </Modal.Body>
         </Modal.Body>
-        <Modal.Footer className="d-flex">
-
+        <Modal.Footer>
+          <button type="button" className="btn btn-default mt-3 col-xs-offset-5 col-xs-2" onClick={this.testLdapCredentials}>{t('Test')}</button>
         </Modal.Footer>
         </Modal.Footer>
       </Modal>
       </Modal>
     );
     );