diff --git a/src/app/admin/page.tsx b/src/app/admin/page.tsx index c55e8e6..546bdde 100644 --- a/src/app/admin/page.tsx +++ b/src/app/admin/page.tsx @@ -18,15 +18,11 @@ function AdminLogin() { ...formData, [name]: value, }) - // const newText = event.target.value; - // setInputText(newText); - // Call the function that returns the output } const handleFormSubmit = (e: { preventDefault: () => void }) => { e.preventDefault() - // PLACEHOLDER - alert saying "Submitted!" const verifyPIN = async (pin: string) => { try { const res = await fetch(`${process.env.NEXT_PUBLIC_SITE_URL}/api/verify/`, { diff --git a/src/app/api/verify/route.ts b/src/app/api/verify/route.ts index dbeeb02..e82af42 100644 --- a/src/app/api/verify/route.ts +++ b/src/app/api/verify/route.ts @@ -2,7 +2,7 @@ import { NextResponse } from 'next/server' export async function POST(req: Request) { - // how to get the user pin ? + // get the user pin const userPin = (await req.json()).pin; // get the password from the env file const actualPin = process.env.PRIVATE_KEY;