diff --git a/src/common/components/forms/FormInputKey.tsx b/src/common/components/forms/FormInputKey.tsx index 7b76e17cc..a6ae3ff1d 100644 --- a/src/common/components/forms/FormInputKey.tsx +++ b/src/common/components/forms/FormInputKey.tsx @@ -34,6 +34,7 @@ export function FormInputKey(props: { ), [props.value, props.noKey, isVisible]); const acId = (props.noKey ? 'input-text-' : 'input-key-') + props.autoCompleteId; + const ghostUsername = props.noKey ? null : props.autoCompleteId.replace('-key', '').replace('-', ' '); return ( @@ -45,19 +46,25 @@ export function FormInputKey(props: { } } - } - endDecorator={endDecorator} - /> + <> + {/* Hidden username field to help password managers distinguish between services */} + {!!ghostUsername && ( + + )} + } + endDecorator={endDecorator} + /> + {props.description && {props.description}}