Web: Login: disable with error

This commit is contained in:
Viktor Fomin 2022-03-10 17:01:42 +03:00
parent 5585a28f0b
commit 79e1b0e082
2 changed files with 2 additions and 2 deletions

View File

@ -500,7 +500,7 @@ const Form = (props) => {
: t("Common:LoginButton")
}
tabIndex={1}
isDisabled={isLoading}
isDisabled={isLoading || !identifierValid || !passwordValid}
isLoading={isLoading}
onClick={onSubmit}
/>

View File

@ -359,7 +359,7 @@ const Form = (props) => {
scale={true}
isAutoFocussed={true}
tabIndex={1}
isDisabled={isLoading}
isDisabled={isLoading || !identifierValid}
autoComplete="username"
onChange={onChangeLogin}
onValidateInput={onValidateEmail}