summaryrefslogtreecommitdiffstats
path: root/webapp/components/password_reset_send_link.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/password_reset_send_link.jsx')
-rw-r--r--webapp/components/password_reset_send_link.jsx8
1 files changed, 3 insertions, 5 deletions
diff --git a/webapp/components/password_reset_send_link.jsx b/webapp/components/password_reset_send_link.jsx
index e3ab8949e..65d9439bd 100644
--- a/webapp/components/password_reset_send_link.jsx
+++ b/webapp/components/password_reset_send_link.jsx
@@ -4,7 +4,7 @@
import $ from 'jquery';
import ReactDOM from 'react-dom';
import * as Utils from 'utils/utils.jsx';
-import * as client from 'utils/client.jsx';
+import client from 'utils/web_client.jsx';
import {FormattedMessage, FormattedHTMLMessage} from 'react-intl';
@@ -43,10 +43,8 @@ class PasswordResetSendLink extends React.Component {
error: ''
});
- var data = {};
- data.email = email;
- data.name = this.props.params.team;
- client.sendPasswordReset(data,
+ client.sendPasswordReset(
+ email,
() => {
this.setState({
error: null,