Skip to content

Let password managers see the login fields - #458

Merged
PianoNic merged 1 commit into
mainfrom
fix/456_PasswordManagerAutofill
Aug 12, 2026
Merged

Let password managers see the login fields#458
PianoNic merged 1 commit into
mainfrom
fix/456_PasswordManagerAutofill

Conversation

@PianoNic

Copy link
Copy Markdown
Member

Every field in the connect form was a plain FTextField with no autofill information, so the platform had nothing to classify them by and managers offered neither fill nor save.

Each field now gets hints derived from its catalog descriptor rather than from any hardcoded school system: password, url, username plus email, or username, keyed off type first and the field key second. The email box also gets TextInputType.emailAddress instead of plain text, and the form chains next/done through its fields.

The fields are wrapped in an AutofillGroup so the platform reads them as one credential, and TextInput.finishAutofillContext() runs after a connect succeeds - never after a failure, so nothing is offered for saving that did not work. The 2FA row is a picker rather than a text field, so it is left out.

Checked on the emulator with Google's autofill service active: focusing the email box now produces an autofill request for that field's bounds, dispatched to com.google.android.gms. The same action on the previous build produced no autofill entry at all.

What this cannot show is an actual fill or save prompt - that needs credentials already stored for the app in a manager, which a fresh emulator has none of. Flutter's save prompt is also known to be inconsistent across services (flutter#104071).

Closes #456

Give each catalog field the autofill hints, keyboard type and next/done action
its descriptor implies, group them so the platform treats them as one
credential, and commit the autofill context after a successful connect so a
manager is offered the chance to save.
@PianoNic PianoNic added the bug Something isn't working label Aug 12, 2026
@PianoNic
PianoNic merged commit ce242f0 into main Aug 12, 2026
@PianoNic
PianoNic deleted the fix/456_PasswordManagerAutofill branch August 12, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Password managers don't recognise the login fields

1 participant