summaryrefslogtreecommitdiffstats
path: root/webapp/utils/web_client.jsx
diff options
context:
space:
mode:
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();