From 41bf14ade2ed815ffd794215f42d7a793bc3af2f Mon Sep 17 00:00:00 2001 From: "Khoa, Le Ngoc" Date: Wed, 3 Feb 2016 13:24:15 +0700 Subject: Clear the password input boxes when user enter incorrect Retype New Password. --- web/react/components/user_settings/user_settings_security.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web') diff --git a/web/react/components/user_settings/user_settings_security.jsx b/web/react/components/user_settings/user_settings_security.jsx index 0c9e722de..5693047c2 100644 --- a/web/react/components/user_settings/user_settings_security.jsx +++ b/web/react/components/user_settings/user_settings_security.jsx @@ -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; } -- cgit v1.2.3-1-g7c22