reverted the use of use:enhance on login form
This commit is contained in:
parent
1ef75efcd8
commit
bafbbfbccb
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue