Exclude email from user update payload in UserFormDialog

This commit is contained in:
Felipe Cardoso
2025-11-26 09:47:10 +01:00
parent dc875c5c95
commit 1cb3658369

View File

@@ -144,9 +144,8 @@ export function UserFormDialog({ open, onOpenChange, user, mode }: UserFormDialo
}
}
// Prepare update data (exclude password if empty)
// Prepare update data (exclude password if empty, email is not updatable)
const updateData: Record<string, unknown> = {
email: data.email,
first_name: data.first_name,
last_name: data.last_name || null,
is_active: data.is_active,