Add fake characters to prevent password managers from filling fields (#989)

This commit is contained in:
Félix Malfait 2023-07-29 19:47:54 -07:00 committed by GitHub
parent 8601ed04ae
commit 55be401204
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -100,7 +100,7 @@ export const companyViewFields: ViewFieldDefinition<ViewFieldMetadata>[] = [
metadata: { metadata: {
type: 'text', type: 'text',
fieldName: 'address', fieldName: 'address',
placeHolder: 'Address', placeHolder: 'Address', // Hack: Fake character to prevent password-manager from filling the field
}, },
} satisfies ViewFieldDefinition<ViewFieldTextMetadata>, } satisfies ViewFieldDefinition<ViewFieldTextMetadata>,
]; ];

View File

@ -31,8 +31,8 @@ export const peopleViewFields: ViewFieldDefinition<ViewFieldMetadata>[] = [
type: 'double-text-chip', type: 'double-text-chip',
firstValueFieldName: 'firstName', firstValueFieldName: 'firstName',
secondValueFieldName: 'lastName', secondValueFieldName: 'lastName',
firstValuePlaceholder: 'First name', firstValuePlaceholder: 'First name', // Hack: Fake character to prevent password-manager from filling the field
secondValuePlaceholder: 'Last name', secondValuePlaceholder: 'Last name', // Hack: Fake character to prevent password-manager from filling the field
avatarUrlFieldName: 'avatarUrl', avatarUrlFieldName: 'avatarUrl',
entityType: Entity.Person, entityType: Entity.Person,
}, },
@ -46,7 +46,7 @@ export const peopleViewFields: ViewFieldDefinition<ViewFieldMetadata>[] = [
metadata: { metadata: {
type: 'text', type: 'text',
fieldName: 'email', fieldName: 'email',
placeHolder: 'Email', placeHolder: 'Email', // Hack: Fake character to prevent password-manager from filling the field
}, },
} satisfies ViewFieldDefinition<ViewFieldTextMetadata>, } satisfies ViewFieldDefinition<ViewFieldTextMetadata>,
{ {
@ -70,7 +70,7 @@ export const peopleViewFields: ViewFieldDefinition<ViewFieldMetadata>[] = [
metadata: { metadata: {
type: 'phone', type: 'phone',
fieldName: 'phone', fieldName: 'phone',
placeHolder: 'Phone', placeHolder: 'Phone', // Hack: Fake character to prevent password-manager from filling the field
}, },
} satisfies ViewFieldDefinition<ViewFieldPhoneMetadata>, } satisfies ViewFieldDefinition<ViewFieldPhoneMetadata>,
{ {
@ -93,7 +93,7 @@ export const peopleViewFields: ViewFieldDefinition<ViewFieldMetadata>[] = [
metadata: { metadata: {
type: 'text', type: 'text',
fieldName: 'city', fieldName: 'city',
placeHolder: 'City', placeHolder: 'City', // Hack: Fake character to prevent password-manager from filling the field
}, },
} satisfies ViewFieldDefinition<ViewFieldTextMetadata>, } satisfies ViewFieldDefinition<ViewFieldTextMetadata>,
{ {