mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user