Skip to content

Fix password manager autofill for Pro auth fields#8742

Open
atavism wants to merge 4 commits into
mainfrom
atavism/password-manager
Open

Fix password manager autofill for Pro auth fields#8742
atavism wants to merge 4 commits into
mainfrom
atavism/password-manager

Conversation

@atavism
Copy link
Copy Markdown
Contributor

@atavism atavism commented May 11, 2026

Resolves https://github.com/getlantern/engineering/issues/3048

Adds proper autofill hints and autofill groups to Pro email, sign-in, password creation, and reset flows so password managers like 1Password and iCloud Keychain can detect credentials, suggest generated passwords, etc.

Copilot AI review requested due to automatic review settings May 11, 2026 10:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves Flutter Pro authentication UX by adding autofill configuration so password managers can better detect email/password fields, offer saved credentials, and suggest/generated passwords during creation/reset flows.

Changes:

  • Added AutofillGroup, autofillHints, and password-friendly keyboard/suggestion settings to sign-in password, create password, and reset password screens; finish autofill context on success.
  • Expanded email fields’ autofill hints (email + username) and set appropriate input types/actions where missing.
  • Minor cleanup/formatting and added a few mounted guards around async UI updates.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
lib/features/auth/sign_in_password.dart Wraps password entry in AutofillGroup, adds password field settings, and calls TextInput.finishAutofillContext on successful sign-in.
lib/features/auth/sign_in_email.dart Adds username autofill hint alongside email for better credential detection.
lib/features/auth/reset_password.dart Adds AutofillGroup + newPassword hints and finishes autofill context after successful reset.
lib/features/auth/reset_password_email.dart Improves email field input type/action and adds email/username autofill hints.
lib/features/auth/create_password.dart Adds AutofillGroup + newPassword hints, finishes autofill context after success, and adds context.mounted checks.
lib/features/auth/add_email.dart Adds email/username autofill hints to the email field, removes an unused import, and adds mounted checks around async UI work.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/features/auth/sign_in_password.dart Outdated
@atavism atavism requested review from jigar-f and myleshorton May 12, 2026 19:23
@myleshorton
Copy link
Copy Markdown
Contributor

Were you able to verify it works @atavism?

Comment thread lib/features/auth/create_password.dart Outdated
Copy link
Copy Markdown
Contributor

@jigar-f jigar-f left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just once tiny nit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants