@ -18,7 +18,7 @@
username,
password,
})
notifications.success("Logged in successfully.")
notifications.success("Logged in successfully")
$goto("../portal")
} catch (err) {
console.error(err)
@ -8,12 +8,11 @@
onMount(async () => {
await admin.init()
await auth.checkAuth()
if (!$admin?.checklist?.adminUser) {
$goto("./admin")
} else {
checked = true
}
$: {
@ -23,6 +22,6 @@
</script>
{#if $admin.checklist}
{#if checked}
<slot />
{/if}