security & footer fix

This commit is contained in:
2025-10-12 00:18:01 -04:00
parent 740ff82642
commit 773ea92f5d
7 changed files with 14 additions and 14 deletions

View File

@@ -1,9 +1,9 @@
import { getAllUsers } from '~/server/utils/database'
import { getAuthCookie } from '~/server/utils/auth'
import { getSessionUsername } from '~/server/utils/auth'
import { getUserByUsername } from '~/server/utils/database'
export default defineEventHandler(async (event) => {
const username = getAuthCookie(event)
const username = await getSessionUsername(event)
if (!username) {
throw createError({