Files
archtika/web-app/src/routes/(anonymous)/register/+page.svelte

23 lines
624 B
Svelte
Raw Normal View History

<script lang="ts">
import { enhance } from "$app/forms";
import SuccessOrError from "$lib/components/SuccessOrError.svelte";
import type { ActionData } from "./$types";
2024-08-20 19:17:05 +02:00
const { form }: { form: ActionData } = $props();
</script>
<SuccessOrError success={form?.success} message={form?.message} />
2024-08-01 18:09:35 +02:00
<form method="POST" use:enhance>
<label>
2024-08-01 18:09:35 +02:00
Username:
<input type="text" name="username" minlength="3" maxlength="16" required />
</label>
<label>
2024-08-01 18:09:35 +02:00
Password:
<input type="password" name="password" minlength="12" maxlength="128" required />
</label>
<button type="submit">Submit</button>
</form>