diff --git a/src/lib/components/layout/auth-functions.svelte b/src/lib/components/layout/auth-functions.svelte index 34adbf3..9e5e72f 100644 --- a/src/lib/components/layout/auth-functions.svelte +++ b/src/lib/components/layout/auth-functions.svelte @@ -15,16 +15,16 @@ } if(!validLogin) { - // attempt to authenticate with default credentials and redirect to first registration screen - try { - let authData = await appSettings.pb.collection("_superusers").authWithPassword('superadmin@breakglass.local', 'firsttimepasswordchangeme'); - if (authData) { - appSettings.pb.authStore.clear(); - goto(resolve(`/firstregistration.html`)); - } - } catch (error) { - goto(resolve(`/login.html`)) - } + goto(resolve(`/login.html`)); } } +// try { +// let authData = await appSettings.pb.collection("_superusers").authWithPassword('superadmin@breakglass.local', 'firsttimepasswordchangeme'); +// if (authData) { +// appSettings.pb.authStore.clear(); +// goto(resolve(`/firstregistration.html`)); +// } +// } catch (error) { +// goto(resolve(`/login.html`)) +// } \ No newline at end of file diff --git a/src/routes/firstregistration.html/+page.svelte b/src/routes/firstregistration.html/+page.svelte deleted file mode 100644 index c068a4e..0000000 --- a/src/routes/firstregistration.html/+page.svelte +++ /dev/null @@ -1 +0,0 @@ -firstregistration \ No newline at end of file diff --git a/src/routes/login.html/+page.svelte b/src/routes/login.html/+page.svelte index e9f12b6..8e0b9f0 100644 --- a/src/routes/login.html/+page.svelte +++ b/src/routes/login.html/+page.svelte @@ -1 +1,20 @@ -login \ No newline at end of file + + +
+
+ Login + + + + + + + + +
+
\ No newline at end of file