From 0dc7d4aa3f65f570641e728fa76324358955c8be Mon Sep 17 00:00:00 2001 From: Alma Date: Sat, 12 Apr 2025 11:07:54 +0200 Subject: [PATCH] correction flow 12 --- app/api/users/route.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/api/users/route.ts b/app/api/users/route.ts index 467a6fb9..8ce1f944 100644 --- a/app/api/users/route.ts +++ b/app/api/users/route.ts @@ -222,12 +222,13 @@ async function createLeantimeUser(userData: { id: 1, params: { values: { - lastname: `${userData.lastName} ${userData.firstName}`, // Format: "Lastname Firstname" + firstname: userData.firstName, // Just first name + lastname: userData.lastName, // Just last name username: userData.email, // Use email as username email: userData.email, password: userData.password, status: 'a', // Use 'a' instead of 'active' - role: 'Commenter', // Use string role instead of number + role: 'Commenter', // Use string role source: 'keycloak' } }