This commit is contained in:
Adam Velebil 2023-03-14 17:26:58 +01:00
commit 43abcff0f2
No known key found for this signature in database
GPG Key ID: C9B1E4A3CBBD2E10
5 changed files with 11 additions and 0 deletions

View File

@ -145,6 +145,7 @@ class _PinEntryFormState extends ConsumerState<_PinEntryForm> {
child: TextField(
autofocus: true,
obscureText: _isObscure,
autofillHints: const [AutofillHints.password],
controller: _pinController,
decoration: InputDecoration(
border: const OutlineInputBorder(),

View File

@ -75,6 +75,7 @@ class _FidoPinDialogState extends ConsumerState<FidoPinDialog> {
initialValue: _currentPin,
autofocus: true,
obscureText: true,
autofillHints: const [AutofillHints.password],
decoration: InputDecoration(
border: const OutlineInputBorder(),
labelText: l10n.s_current_pin,
@ -96,6 +97,7 @@ class _FidoPinDialogState extends ConsumerState<FidoPinDialog> {
initialValue: _newPin,
autofocus: !hasPin,
obscureText: true,
autofillHints: const [AutofillHints.password],
decoration: InputDecoration(
border: const OutlineInputBorder(),
labelText: l10n.s_new_pin,
@ -114,6 +116,7 @@ class _FidoPinDialogState extends ConsumerState<FidoPinDialog> {
TextFormField(
initialValue: _confirmPin,
obscureText: true,
autofillHints: const [AutofillHints.password],
decoration: InputDecoration(
border: const OutlineInputBorder(),
labelText: l10n.s_confirm_pin,

View File

@ -453,6 +453,9 @@ class _OathAddAccountPageState extends ConsumerState<OathAddAccountPage> {
key: keys.secretField,
controller: _secretController,
obscureText: _isObscure,
// avoid using autofill hints on Android otherwise Autofill service
// would hint to use saved passwords for this field
autofillHints: isAndroid ? [] : const [AutofillHints.password],
inputFormatters: <TextInputFormatter>[
FilteringTextInputFormatter.allow(
_secretFormatterPattern)

View File

@ -82,6 +82,7 @@ class _ManagePasswordDialogState extends ConsumerState<ManagePasswordDialog> {
TextField(
autofocus: true,
obscureText: true,
autofillHints: const [AutofillHints.password],
key: keys.currentPasswordField,
decoration: InputDecoration(
border: const OutlineInputBorder(),
@ -141,6 +142,7 @@ class _ManagePasswordDialogState extends ConsumerState<ManagePasswordDialog> {
key: keys.newPasswordField,
autofocus: !widget.state.hasKey,
obscureText: true,
autofillHints: const [AutofillHints.newPassword],
decoration: InputDecoration(
border: const OutlineInputBorder(),
labelText: l10n.s_new_password,
@ -162,6 +164,7 @@ class _ManagePasswordDialogState extends ConsumerState<ManagePasswordDialog> {
TextField(
key: keys.confirmPasswordField,
obscureText: true,
autofillHints: const [AutofillHints.newPassword],
decoration: InputDecoration(
border: const OutlineInputBorder(),
labelText: l10n.s_confirm_password,

View File

@ -77,6 +77,7 @@ class _UnlockFormState extends ConsumerState<UnlockForm> {
controller: _passwordController,
autofocus: true,
obscureText: _isObscure,
autofillHints: const [AutofillHints.password],
decoration: InputDecoration(
border: const OutlineInputBorder(),
labelText: l10n.s_password,