reverted the use of use:enhance on login form

This commit is contained in:
Patrick 2025-07-27 17:21:15 +02:00
parent 1ef75efcd8
commit bafbbfbccb
1 changed files with 2 additions and 3 deletions

View File

@ -1,15 +1,14 @@
<script lang="ts">
import type { PageProps } from "./$types";
import { enhance } from "$app/forms";
import { page } from "$app/state";
let { status, form }: PageProps = $props();
let { form }: PageProps = $props();
</script>
<div>
<h1>Login</h1>
<form id="login" method="POST" action="?/login" use:enhance={({formElement}) => { formElement.reset() }}>
<form id="login" method="POST" action="?/login">
<table>
<tbody>
<tr>