diff --git a/webclient/src/containers/Login/Login.tsx b/webclient/src/containers/Login/Login.tsx index 85c121be2..dd50a788c 100644 --- a/webclient/src/containers/Login/Login.tsx +++ b/webclient/src/containers/Login/Login.tsx @@ -87,6 +87,10 @@ const Login = ({ state, description }: LoginProps) => { openActivateAccountDialog(); }, ServerTypes.ACCOUNT_AWAITING_ACTIVATION, []); + useReduxEffect(() => { + resetSubmitButton(); + }, [ServerTypes.LOGIN_FAILED], []); + useReduxEffect(({ options: { hashedPassword } }) => { if (hostIdToRemember) { HostDTO.get(hostIdToRemember).then(host => { diff --git a/webclient/src/forms/LoginForm/LoginForm.tsx b/webclient/src/forms/LoginForm/LoginForm.tsx index 8218dc167..0f3779b5b 100644 --- a/webclient/src/forms/LoginForm/LoginForm.tsx +++ b/webclient/src/forms/LoginForm/LoginForm.tsx @@ -41,8 +41,6 @@ const LoginForm = ({ onSubmit, disableSubmitButton, onResetPassword }: LoginForm setPasswordLabel(useStoredLabel ? STORED_PASSWORD_LABEL : PASSWORD_LABEL); }; - - return (