Updated so that the rules and class text can be updated through the admin page

This commit is contained in:
2026-04-19 13:28:13 +02:00 Verified
parent 16f5c3f22b
commit 0d4d447569
11 changed files with 103 additions and 39 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
import { cookies } from 'next/headers';
import { redirect } from 'next/navigation';
export async function loginAction(prevState: any, formData: FormData) {
export async function loginAction(prevState: { success?: boolean } | null | unknown, formData: FormData) {
const password = formData.get('password');
if (password === process.env.ADMIN_PASSWORD) {