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( child: TextField(
autofocus: true, autofocus: true,
obscureText: _isObscure, obscureText: _isObscure,
autofillHints: const [AutofillHints.password],
controller: _pinController, controller: _pinController,
decoration: InputDecoration( decoration: InputDecoration(
border: const OutlineInputBorder(), border: const OutlineInputBorder(),

View File

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

View File

@ -453,6 +453,9 @@ class _OathAddAccountPageState extends ConsumerState<OathAddAccountPage> {
key: keys.secretField, key: keys.secretField,
controller: _secretController, controller: _secretController,
obscureText: _isObscure, 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>[ inputFormatters: <TextInputFormatter>[
FilteringTextInputFormatter.allow( FilteringTextInputFormatter.allow(
_secretFormatterPattern) _secretFormatterPattern)

View File

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

View File

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