frontend cleanup

This commit is contained in:
Alex
2025-02-07 22:00:43 +01:00
parent 3ae1ffd403
commit cce2866b52
7 changed files with 22 additions and 60 deletions

View File

@@ -8,7 +8,7 @@ import { fail, redirect } from '@sveltejs/kit';
import { formDataToObject, processFormData } from '$lib/utils/processing';
/** @type {import('./$types').PageServerLoad} */
export async function load({ locals, params }) {
export async function load({ locals }) {
// redirect user if not logged in
if (!locals.user) {
throw redirect(302, `/auth/login?next=/auth/users`);