fix: unauthorized email address change (#5709)

This commit is contained in:
Dhruwang Jariwala
2025-05-08 12:04:04 +05:30
committed by GitHub
parent 03c9a6aaae
commit 47583b5a32

View File

@@ -9,7 +9,7 @@ import { ZId } from "@formbricks/types/common";
import { ZUserUpdateInput } from "@formbricks/types/user";
export const updateUserAction = authenticatedActionClient
.schema(ZUserUpdateInput.partial())
.schema(ZUserUpdateInput.pick({ name: true, locale: true }))
.action(async ({ parsedInput, ctx }) => {
return await updateUser(ctx.user.id, parsedInput);
});