From 0271c87ba9ed392880b54d96b89efded0395f5cc Mon Sep 17 00:00:00 2001 From: bagasbanuna Date: Tue, 24 Feb 2026 18:04:05 +0800 Subject: [PATCH] Delete termsOfServiceAccepted on register ### No issue --- src/app/api/auth/register/route.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/api/auth/register/route.ts b/src/app/api/auth/register/route.ts index f71f6623..7f4d515a 100644 --- a/src/app/api/auth/register/route.ts +++ b/src/app/api/auth/register/route.ts @@ -27,12 +27,12 @@ export async function POST(req: Request) { }); // ✅ Validasi wajib setuju Terms - if (data.termsOfServiceAccepted !== true) { - return NextResponse.json({ - success: false, - message: "You must agree to the Terms of Service", - }); - } + // if (data.termsOfServiceAccepted !== true) { + // return NextResponse.json({ + // success: false, + // message: "You must agree to the Terms of Service", + // }); + // } const createUser = await prisma.user.create({ data: {