Update server setup logic and add admin user creation in setup page

This commit is contained in:
Sean Morley
2024-04-18 23:00:35 +00:00
parent 7fe90f615f
commit f626370d3f
9 changed files with 235 additions and 2 deletions

View File

@@ -1,12 +1,15 @@
import { goto } from "$app/navigation";
import type { LayoutServerLoad, PageServerLoad } from "./$types";
export const load: LayoutServerLoad = async (event) => {
if (event.locals.user) {
return {
user: event.locals.user,
isServerSetup: event.locals.isServerSetup,
};
}
return {
user: null,
isServerSetup: event.locals.isServerSetup,
};
};