security & footer fix
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { getAuthCookie } from '~/server/utils/auth'
|
||||
import { getSessionUsername } from '~/server/utils/auth'
|
||||
import { archiveSermon, getUserByUsername } from '~/server/utils/database'
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
// Check authentication
|
||||
const username = getAuthCookie(event)
|
||||
const username = await getSessionUsername(event)
|
||||
|
||||
if (!username) {
|
||||
throw createError({
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { getAuthCookie } from '~/server/utils/auth'
|
||||
import { getSessionUsername } from '~/server/utils/auth'
|
||||
import { getDatabase, getUserByUsername } from '~/server/utils/database'
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
// Check authentication
|
||||
const username = getAuthCookie(event)
|
||||
const username = await getSessionUsername(event)
|
||||
|
||||
if (!username) {
|
||||
throw createError({
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { createSermon, getUserByUsername } from '~/server/utils/database'
|
||||
import { getAuthCookie } from '~/server/utils/auth'
|
||||
import { getSessionUsername } from '~/server/utils/auth'
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
// Check authentication
|
||||
const username = getAuthCookie(event)
|
||||
const username = await getSessionUsername(event)
|
||||
|
||||
if (!username) {
|
||||
throw createError({
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { getAuthCookie } from '~/server/utils/auth'
|
||||
import { getSessionUsername } from '~/server/utils/auth'
|
||||
import { getDatabase, getUserByUsername } from '~/server/utils/database'
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
// Check authentication
|
||||
const username = getAuthCookie(event)
|
||||
const username = await getSessionUsername(event)
|
||||
|
||||
if (!username) {
|
||||
throw createError({
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { getAuthCookie } from '~/server/utils/auth'
|
||||
import { getSessionUsername } from '~/server/utils/auth'
|
||||
import { getDatabase, getUserByUsername } from '~/server/utils/database'
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
// Check authentication
|
||||
const username = getAuthCookie(event)
|
||||
const username = await getSessionUsername(event)
|
||||
|
||||
if (!username) {
|
||||
throw createError({
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user