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 4935cff4ac
commit 0b53d9ab6b
1 changed files with 3 additions and 1 deletions

View File

@ -80,7 +80,9 @@
/>
</Layout>
<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")}>
Forgot password?
</ActionButton>