Skip to content

Commit 5d79b48

Browse files
authored
Merge pull request #1028 from hpcc-systems/yadhap/clear-only-password-input-field
Clear Only Password Input Field After Invalid Login Attempt
2 parents 8881d8f + e54370b commit 5d79b48

File tree

1 file changed

+1
-1
lines changed
  • Tombolo/client-reactjs/src/components/login

1 file changed

+1
-1
lines changed

Tombolo/client-reactjs/src/components/login/login.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const Login = () => {
4747

4848
//handle login failed
4949
if (test?.type === Constants.LOGIN_FAILED) {
50-
loginForm.resetFields();
50+
loginForm.setFieldsValue({ password: null });
5151
setLoading(false);
5252
return;
5353
}

0 commit comments

Comments
 (0)