mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-18 17:12:53 +03:00
Add fake characters to prevent password managers from filling fields (#989)
This commit is contained in:
parent
8601ed04ae
commit
55be401204
@ -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>,
|
||||||
];
|
];
|
||||||
|
@ -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>,
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user