simple login validation to prevent login without entering anything

This commit is contained in:
Martin McKeaveney 2022-05-23 12:50:42 +01:00
parent 764b4ca9cd
commit 5e2155cbc7
1 changed files with 3 additions and 1 deletions

View File

@ -80,7 +80,9 @@
/> />
</Layout> </Layout>
<Layout gap="XS" noPadding> <Layout gap="XS" noPadding>
<Button cta on:click={login}>Sign in to {company}</Button> <Button cta disabled={!username && !password} on:click={login}
>Sign in to {company}</Button
>
<ActionButton quiet on:click={() => $goto("./forgot")}> <ActionButton quiet on:click={() => $goto("./forgot")}>
Forgot password? Forgot password?
</ActionButton> </ActionButton>