mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
23 lines
564 B
Svelte
23 lines
564 B
Svelte
<script lang="ts">
|
|
import { enhance } from "$app/forms";
|
|
import SuccessOrError from "$lib/components/SuccessOrError.svelte";
|
|
import type { ActionData } from "./$types";
|
|
|
|
const { form }: { form: ActionData } = $props();
|
|
</script>
|
|
|
|
<SuccessOrError success={form?.success} message={form?.message} />
|
|
|
|
<form method="POST" use:enhance>
|
|
<label>
|
|
Username:
|
|
<input type="text" name="username" required />
|
|
</label>
|
|
<label>
|
|
Password:
|
|
<input type="password" name="password" required />
|
|
</label>
|
|
|
|
<button type="submit">Submit</button>
|
|
</form>
|