summaryrefslogtreecommitdiffstats
path: root/webapp/components/admin_console/reset_password_modal.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/admin_console/reset_password_modal.jsx')
-rw-r--r--webapp/components/admin_console/reset_password_modal.jsx13
1 files changed, 5 insertions, 8 deletions
diff --git a/webapp/components/admin_console/reset_password_modal.jsx b/webapp/components/admin_console/reset_password_modal.jsx
index f80c740e3..5133f3f28 100644
--- a/webapp/components/admin_console/reset_password_modal.jsx
+++ b/webapp/components/admin_console/reset_password_modal.jsx
@@ -2,7 +2,7 @@
// See License.txt for license information.
import ReactDOM from 'react-dom';
-import * as Client from 'utils/client.jsx';
+import Client from 'utils/web_client.jsx';
import Constants from 'utils/constants.jsx';
import {Modal} from 'react-bootstrap';
@@ -40,12 +40,9 @@ class ResetPasswordModal extends React.Component {
this.setState({serverError: null});
- var data = {};
- data.new_password = password;
- data.name = this.props.team.name;
- data.user_id = this.props.user.id;
-
- Client.resetPassword(data,
+ Client.adminResetPassword(
+ this.props.user.id,
+ password,
() => {
this.props.onModalSubmit(ReactDOM.findDOMNode(this.refs.password).value);
},
@@ -159,4 +156,4 @@ ResetPasswordModal.propTypes = {
onModalDismissed: React.PropTypes.func
};
-export default injectIntl(ResetPasswordModal); \ No newline at end of file
+export default injectIntl(ResetPasswordModal);