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.jsx9
1 files changed, 4 insertions, 5 deletions
diff --git a/webapp/utils/web_client.jsx b/webapp/utils/web_client.jsx
index a9851442b..3efb32806 100644
--- a/webapp/utils/web_client.jsx
+++ b/webapp/utils/web_client.jsx
@@ -39,14 +39,13 @@ class WebClientClass extends Client {
// not sure why but super.login doesn't work if using an () => arrow functions.
// I think this might be a webpack issue.
- webLogin(email, username, password, token, success, error) {
+ webLogin(loginId, password, token, success, error) {
this.login(
- email,
- username,
+ loginId,
password,
token,
(data) => {
- this.track('api', 'api_users_login_success', '', 'email', data.email);
+ this.track('api', 'api_users_login_success', '', 'login_id', loginId);
BrowserStore.signalLogin();
if (success) {
@@ -54,7 +53,7 @@ class WebClientClass extends Client {
}
},
(err) => {
- this.track('api', 'api_users_login_fail', name, 'email', email);
+ this.track('api', 'api_users_login_fail', name, 'login_id', loginId);
if (error) {
error(err);
}