diff --git a/backend/src/controllers/users.controller.ts b/backend/src/controllers/users.controller.ts index 53eb8f5..cf17200 100644 --- a/backend/src/controllers/users.controller.ts +++ b/backend/src/controllers/users.controller.ts @@ -91,7 +91,7 @@ export const createUser = async (request: FastifyRequest, reply: FastifyReply) = const user = await request.server.prisma.user.create({ data: { email: data.email, - password: hashedPassword, + passwordHash: hashedPassword, name: data.name || data.email.split('@')[0], role: (data.role as any) || 'WORKER', ...(data.roleId && { roleId: data.roleId }),