From 49c46f9f727dd59190b9a3980b9a0600167b93fb Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Tue, 31 Jan 2023 22:46:45 +0100 Subject: [PATCH] redirect + error print + logout Signed-off-by: Sam Therapy --- frontend/src/lib/LoginForm.svelte | 23 +++++++++++++++++----- frontend/src/routes/+page.svelte | 3 ++- frontend/src/routes/login/+page.svelte | 4 ++-- frontend/src/routes/logout/+page.svelte | 24 +++++++++++++++++++++++ frontend/src/routes/register/+page.svelte | 4 ++-- 5 files changed, 48 insertions(+), 10 deletions(-) create mode 100644 frontend/src/routes/logout/+page.svelte diff --git a/frontend/src/lib/LoginForm.svelte b/frontend/src/lib/LoginForm.svelte index c6a063c..799bc46 100644 --- a/frontend/src/lib/LoginForm.svelte +++ b/frontend/src/lib/LoginForm.svelte @@ -1,20 +1,26 @@ - \ No newline at end of file + diff --git a/frontend/src/routes/logout/+page.svelte b/frontend/src/routes/logout/+page.svelte new file mode 100644 index 0000000..d9df620 --- /dev/null +++ b/frontend/src/routes/logout/+page.svelte @@ -0,0 +1,24 @@ + + +{#await promise} +

+{:then} +

+{:catch error} +

{error}

+{/await} diff --git a/frontend/src/routes/register/+page.svelte b/frontend/src/routes/register/+page.svelte index 135c57b..4da5eb7 100644 --- a/frontend/src/routes/register/+page.svelte +++ b/frontend/src/routes/register/+page.svelte @@ -1,5 +1,5 @@ - \ No newline at end of file +