Updated so that the rules and class text can be updated through the admin page
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user