diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-07-17 23:42:55 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-07-17 23:44:11 +0200 |
| commit | bef3da2a567e3804e12355d9c3d5c09439dbe2ea (patch) | |
| tree | ab7974c941bd31994da46150234976b33c2f61b5 /client/src/routes/login/+page.svelte | |
| parent | 145be2b3c92e254904d4040850e3c1e9b6a66f32 (diff) | |
Humble beginnings
Redirect to login if not logged in, on login session cookie is set
and projects or reviews are listed.
Diffstat (limited to 'client/src/routes/login/+page.svelte')
| -rw-r--r-- | client/src/routes/login/+page.svelte | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/client/src/routes/login/+page.svelte b/client/src/routes/login/+page.svelte new file mode 100644 index 0000000..8a91125 --- /dev/null +++ b/client/src/routes/login/+page.svelte @@ -0,0 +1,22 @@ +<script lang="ts"> + import type { PageProps } from './$types'; + + let { data, form }: PageProps = $props(); +</script> + +{#if form?.error} + <p>Unknown username or password</p> +{/if} + +<form method="POST"> + <label> + Username + <input name="username" type="text" value={form?.username} /> + </label> + <label> + Password + <input name="password" type="password" /> + </label> + <button>Log in</button> + <input type="hidden" name="return" value={data.return} /> +</form> |
