summaryrefslogtreecommitdiffstats
path: root/webapp/utils/web_client.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-05-09 15:56:50 -0400
committerChristopher Speller <crspeller@gmail.com>2016-05-09 15:56:50 -0400
commitff72a126d3f6a45da8968ddc0a8e79721fe64e64 (patch)
tree7d20a7e64d1c003f349b498e9e2d3e831a43076c /webapp/utils/web_client.jsx
parent3eebd15bf02fc767dfec816f2cd785068e8c5f80 (diff)
downloadchat-ff72a126d3f6a45da8968ddc0a8e79721fe64e64.tar.gz
chat-ff72a126d3f6a45da8968ddc0a8e79721fe64e64.tar.bz2
chat-ff72a126d3f6a45da8968ddc0a8e79721fe64e64.zip
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
Diffstat (limited to 'webapp/utils/web_client.jsx')
-rw-r--r--webapp/utils/web_client.jsx22
1 files changed, 22 insertions, 0 deletions
diff --git a/webapp/utils/web_client.jsx b/webapp/utils/web_client.jsx
index 3efb32806..642e523b7 100644
--- a/webapp/utils/web_client.jsx
+++ b/webapp/utils/web_client.jsx
@@ -60,6 +60,28 @@ class WebClientClass extends Client {
}
);
}
+
+ webLoginByLdap(loginId, password, token, success, error) {
+ this.loginByLdap(
+ loginId,
+ password,
+ token,
+ (data) => {
+ this.track('api', 'api_users_login_success', '', 'login_id', loginId);
+ BrowserStore.signalLogin();
+
+ if (success) {
+ success(data);
+ }
+ },
+ (err) => {
+ this.track('api', 'api_users_login_fail', name, 'login_id', loginId);
+ if (error) {
+ error(err);
+ }
+ }
+ );
+ }
}
var WebClient = new WebClientClass();