Merge pull request #2055 from khoa-le/PLT-1693
PLT-1693: Clear the password input boxes when user enter incorrect Retype New P…
Этот коммит содержится в:
@@ -88,7 +88,8 @@ class SecurityTab extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (newPassword !== confirmPassword) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user