summaryrefslogtreecommitdiffstats
path: root/web/react/components/user_settings.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/components/user_settings.jsx')
-rw-r--r--web/react/components/user_settings.jsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/react/components/user_settings.jsx b/web/react/components/user_settings.jsx
index d0ce23639..ed4f3fd98 100644
--- a/web/react/components/user_settings.jsx
+++ b/web/react/components/user_settings.jsx
@@ -524,12 +524,13 @@ var SecurityTab = React.createClass({
$(this.getDOMNode()).find('.form-control').each(function() {
this.value = '';
});
+ this.setState({current_password: '', new_password: '', confirm_password: '', server_error: null, password_error: null});
if (!this.state.willReturn) {
this.props.updateTab('general');
+ } else {
+ this.setState({willReturn: false});
}
-
- this.setState({current_password: '', new_password: '', confirm_password: '', server_error: null, password_error: null, willReturn: false});
},
componentDidMount: function() {
$('#user_settings1').on('hidden.bs.modal', this.handleClose);