From e6d26bee51067d65480925593d1610404ff9d5e3 Mon Sep 17 00:00:00 2001
From: Joram Wilander <jwawilander@gmail.com>
Date: Mon, 24 Oct 2016 08:50:12 -0400
Subject: Fixes for the team user lists in the system console (#4294)

---
 webapp/components/admin_console/reset_password_modal.jsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'webapp/components/admin_console/reset_password_modal.jsx')

diff --git a/webapp/components/admin_console/reset_password_modal.jsx b/webapp/components/admin_console/reset_password_modal.jsx
index dee04b87c..e3fd2bf00 100644
--- a/webapp/components/admin_console/reset_password_modal.jsx
+++ b/webapp/components/admin_console/reset_password_modal.jsx
@@ -1,7 +1,6 @@
 // Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
 // See License.txt for license information.
 
-import ReactDOM from 'react-dom';
 import Client from 'client/web_client.jsx';
 import * as Utils from 'utils/utils.jsx';
 import {Modal} from 'react-bootstrap';
@@ -37,7 +36,7 @@ class ResetPasswordModal extends React.Component {
             this.props.user.id,
             password,
             () => {
-                this.props.onModalSubmit(ReactDOM.findDOMNode(this.refs.password).value);
+                this.props.onModalSubmit(this.props.user);
             },
             (err) => {
                 this.setState({serverError: err.message});
-- 
cgit v1.2.3-1-g7c22

