Merge pull request #2055 from khoa-le/PLT-1693

PLT-1693: Clear the password input boxes when user enter incorrect Retype New P…
This commit is contained in:
Christopher Speller
2016-02-03 08:55:25 -05:00

View File

@@ -88,7 +88,8 @@ class SecurityTab extends React.Component {
}
if (newPassword !== confirmPassword) {
this.setState({passwordError: formatMessage(holders.passwordMatchError), serverError: ''});
var defaultState = Object.assign(this.getDefaultState(), {passwordError: formatMessage(holders.passwordMatchError), serverError: ''});
this.setState(defaultState);
return;
}