The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Add fake characters to prevent password managers from filling fields (#989)
Félix Malfait55be401204d4
diff --git a/front/src/modules/companies/constants/companyViewFields.tsx b/front/src/modules/companies/constants/companyViewFields.tsxindex 4df0ed88b91..0d00d865599 100644--- a/front/src/modules/companies/constants/companyViewFields.tsx+++ b/front/src/modules/companies/constants/companyViewFields.tsx@@ -100,7 +100,7 @@ export const companyViewFields: ViewFieldDefinition<ViewFieldMetadata>[] = [metadata: {type: 'text',fieldName: 'address',- placeHolder: 'Address',+ placeHolder: 'Address', // Hack: Fake character to prevent password-manager from filling the field},} satisfies ViewFieldDefinition<ViewFieldTextMetadata>,];diff --git a/front/src/modules/people/constants/peopleViewFields.tsx b/front/src/modules/people/constants/peopleViewFields.tsxindex db317e6f5de..0463624eeb0 100644--- a/front/src/modules/people/constants/peopleViewFields.tsx+++ b/front/src/modules/people/constants/peopleViewFields.tsx@@ -31,8 +31,8 @@ export const peopleViewFields: ViewFieldDefinition<ViewFieldMetadata>[] = [type: 'double-text-chip',firstValueFieldName: 'firstName',secondValueFieldName: 'lastName',- firstValuePlaceholder: 'First name',- secondValuePlaceholder: 'Last name',+ firstValuePlaceholder: 'First name', // Hack: Fake character to prevent password-manager from filling the field+ secondValuePlaceholder: 'Last name', // Hack: Fake character to prevent password-manager from filling the fieldavatarUrlFieldName: 'avatarUrl',entityType: Entity.Person,},@@ -46,7 +46,7 @@ export const peopleViewFields: ViewFieldDefinition<ViewFieldMetadata>[] = [metadata: {type: 'text',fieldName: 'email',- placeHolder: 'Email',+ placeHolder: 'Email', // Hack: Fake character to prevent password-manager from filling the field},} satisfies ViewFieldDefinition<ViewFieldTextMetadata>,{@@ -70,7 +70,7 @@ export const peopleViewFields: ViewFieldDefinition<ViewFieldMetadata>[] = [metadata: {type: 'phone',fieldName: 'phone',- placeHolder: 'Phone',+ placeHolder: 'Phone', // Hack: Fake character to prevent password-manager from filling the field},} satisfies ViewFieldDefinition<ViewFieldPhoneMetadata>,{@@ -93,7 +93,7 @@ export const peopleViewFields: ViewFieldDefinition<ViewFieldMetadata>[] = [metadata: {type: 'text',fieldName: 'city',- placeHolder: 'City',+ placeHolder: 'City', // Hack: Fake character to prevent password-manager from filling the field},} satisfies ViewFieldDefinition<ViewFieldTextMetadata>,{