From ff72a126d3f6a45da8968ddc0a8e79721fe64e64 Mon Sep 17 00:00:00 2001
From: Harrison Healey <harrisonmhealey@gmail.com>
Date: Mon, 9 May 2016 15:56:50 -0400
Subject: PLT-2862 Re-added LDAP login boxes as part of signup flow (#2937)

* Added ldap_only parameter for login API

* Re-added LDAP login boxes as part of signup flow
---
 webapp/client/client.jsx | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'webapp/client/client.jsx')

diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx
index 5d0dd07c9..c81c5a1d7 100644
--- a/webapp/client/client.jsx
+++ b/webapp/client/client.jsx
@@ -759,6 +759,12 @@ export default class Client {
         this.track('api', 'api_users_login', '', 'id', id);
     }
 
+    loginByLdap = (loginId, password, mfaToken, success, error) => {
+        this.doLogin({login_id: loginId, password, token: mfaToken, ldap_only: 'true'}, success, error);
+
+        this.track('api', 'api_users_login', '', 'login_id', loginId);
+    }
+
     doLogin = (outgoingData, success, error) => {
         var outer = this;  // eslint-disable-line consistent-this
 
-- 
cgit v1.2.3-1-g7c22

