Add missing fieldNames from synthetic user attributes

This commit is contained in:
Joseph Garrone
2024-06-23 00:37:06 +02:00
parent 4d73d877ba
commit ac96959947

View File

@ -11,7 +11,15 @@ export function readFieldNameUsage(params: {
}): string[] { }): string[] {
const { themeSrcDirPath, themeType } = params; const { themeSrcDirPath, themeType } = params;
const fieldNames = new Set<string>(); // NOTE: We pre-populate with the synthetic user attributes defined in useUserProfileForm (can't be parsed automatically)
const fieldNames = new Set<string>([
"firstName",
"lastName",
"email",
"username",
"password",
"password-confirm"
]);
for (const srcDirPath of [ for (const srcDirPath of [
pathJoin(getThisCodebaseRootDirPath(), "src", themeType), pathJoin(getThisCodebaseRootDirPath(), "src", themeType),