fireship-io / fkit-course

The Full SvelteKit Course
172 stars 31 forks source link

Form validation doesn't check for validity #7

Open JoshKamps opened 8 months ago

JoshKamps commented 8 months ago

Hello, was just following along with the tutorial when I noticed I could still submit a non-alphanumeric username. Should this not be like so:

`{#if isAvailable && isValid}

{/if}`

or am I missing something?

https://github.com/fireship-io/fkit-course/blob/ce1b40a030c5461ba4e449a2c45eae6fdfcb4543/src/routes/login/username/%2Bpage.svelte#L101C9-L103C14