fix: target named login action

Point the login form at the explicit named action used by the server route.

Remove the stale production preview command from the README deployment notes.
This commit is contained in:
kdaniel2410 committed 2026-06-06 14:13:51 +01:00
1 parent 5be93c65ea
commit bf5a1ad5b5
3 files changed
+2 -7

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@
</script>
<div class={cn("flex flex-col gap-6", className)} bind:this={ref} {...restProps}>
<form method="POST" use:enhance>
<form action="?/login" method="POST" use:enhance>
<Field.Group>
<div class="flex flex-col items-center gap-2 text-center">
<div class="flex flex-col items-center gap-2 font-medium">
+1 -1
View File
@@ -95,7 +95,7 @@ export const actions: Actions = {
redirect(303, getSafeRedirect(event.url));
},
default: async (event) => {
login: async (event) => {
const form = await superValidate(event, zod4(loginSchema), { id: 'login' });
if (!form.valid) {