f034_sqlite_database #19

Merged
jared merged 34 commits from f034_sqlite_database into development 2025-07-24 14:34:39 +02:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit f2bde76969 - Show all commits

View File

@@ -20,5 +20,5 @@ export const load: PageServerLoad = async ({ params, url, locals }) => {
const isVorgangValid = vorgangExists(caseId);
const isTokenValid = tokenValid(caseId, caseToken);
if (!isVorgangValid || !isTokenValid) throw redirect(303, `/anmeldung`);
if (!isVorgangValid || !isTokenValid) throw redirect(303, `/anmeldung?vorgang=${caseId}`);
};

View File

@@ -11,6 +11,9 @@
export let form;
export let open = false;
import { page } from '$app/state';
const vorgang_token = page.url.searchParams.get('vorgang');
</script>
<div class="flex min-h-full flex-col justify-center px-6 py-12 lg:px-8">
@@ -30,7 +33,7 @@
name="case-id"
label="Vorgangskennung"
type="text"
value={form?.caseId}
value={vorgang_token}
/>
<div class="mt-5">
<BaseInputField