diff --git a/.serena/cache/typescript/document_symbols_cache_v23-06-25.pkl b/.serena/cache/typescript/document_symbols_cache_v23-06-25.pkl index 3ae6cf1..6fe3819 100644 Binary files a/.serena/cache/typescript/document_symbols_cache_v23-06-25.pkl and b/.serena/cache/typescript/document_symbols_cache_v23-06-25.pkl differ diff --git a/server/api/registration.post.ts b/server/api/registration.post.ts index 5dccdc5..2453bd9 100644 --- a/server/api/registration.post.ts +++ b/server/api/registration.post.ts @@ -92,8 +92,8 @@ export default defineEventHandler(async (event) => { }); } - // 5. Create Keycloak user with role-based registration - console.log('[api/registration.post] Creating Keycloak user with role-based system...'); + // 5. Create Keycloak user with group-based assignment + console.log('[api/registration.post] Creating Keycloak user with group-based system...'); const paymentDueDate = new Date(); paymentDueDate.setMonth(paymentDueDate.getMonth() + 1); // 1 month from registration @@ -108,11 +108,11 @@ export default defineEventHandler(async (event) => { membershipTier: 'user' as const }; - createdKeycloakId = await keycloakAdmin.createUserWithRoleRegistration({ + createdKeycloakId = await keycloakAdmin.createUserWithGroupAssignment({ email: body.email, firstName: body.first_name, lastName: body.last_name, - membershipTier: 'user', // All public registrations default to 'user' role + membershipTier: 'user', // All public registrations default to 'user' group membershipData });