Clear the password input boxes when user enter incorrect Retype New Password.
Этот коммит содержится в:
@@ -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