Passwort in .env und logging ausgeschaltet
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import { PrismaClient } from '@prisma/client';
|
import { PrismaClient } from '@prisma/client';
|
||||||
//import { PrismaClient } from './src/generated/client';
|
|
||||||
import { json } from '@sveltejs/kit';
|
import { json } from '@sveltejs/kit';
|
||||||
import type { RequestHandler } from './$types';
|
import type { RequestHandler } from './$types';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { json } from '@sveltejs/kit';
|
import { json } from '@sveltejs/kit';
|
||||||
import type { RequestHandler } from './$types';
|
import type { RequestHandler } from './$types';
|
||||||
|
|
||||||
const ADMIN_PASS = 'supergeheim'; // 🔒 Besser aus .env lesen
|
const ADMIN_PASS = import.meta.env.VITE_ADMIN_PASS;
|
||||||
|
|
||||||
export const POST: RequestHandler = async ({ request, cookies }) => {
|
export const POST: RequestHandler = async ({ request, cookies }) => {
|
||||||
const { passwort } = await request.json();
|
const { passwort } = await request.json();
|
||||||
|
|||||||
Reference in New Issue
Block a user