summaryrefslogtreecommitdiffstats
path: root/webapp/components/password_reset_form.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/password_reset_form.jsx')
-rw-r--r--webapp/components/password_reset_form.jsx7
1 files changed, 3 insertions, 4 deletions
diff --git a/webapp/components/password_reset_form.jsx b/webapp/components/password_reset_form.jsx
index b37e07f2d..c6fe2525f 100644
--- a/webapp/components/password_reset_form.jsx
+++ b/webapp/components/password_reset_form.jsx
@@ -2,12 +2,12 @@
// 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 Constants from 'utils/constants.jsx';
import {FormattedMessage} from 'react-intl';
-import {browserHistory} from 'react-router/es6';
+
+import {resetPassword} from 'actions/user_actions.jsx';
import React from 'react';
@@ -42,12 +42,11 @@ class PasswordResetForm extends React.Component {
error: null
});
- Client.resetPassword(
+ resetPassword(
this.props.location.query.code,
password,
() => {
this.setState({error: null});
- browserHistory.push('/login?extra=' + Constants.PASSWORD_CHANGE);
},
(err) => {
this.setState({error: err.message});