From 7e00a1a296588c90b8a5a60540208cbb81a44e75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Tue, 2 Jul 2024 11:05:39 +0200 Subject: [PATCH] Default register user to draft status --- app/api/auth/register/route.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/auth/register/route.js b/app/api/auth/register/route.js index d4de36e..ba9ea0c 100644 --- a/app/api/auth/register/route.js +++ b/app/api/auth/register/route.js @@ -14,7 +14,8 @@ export async function POST(request) { first_name, email, password, - role: userRole + role: userRole, + status: 'draft' }) )