Skip to content

fix(auth): prevent MFA code input from triggering password manager save (#2405)#2421

Open
just1and0 wants to merge 2 commits into
version-10.0.0-beta04from
fix/2405-mfa-password-manager-interference
Open

fix(auth): prevent MFA code input from triggering password manager save (#2405)#2421
just1and0 wants to merge 2 commits into
version-10.0.0-beta04from
fix/2405-mfa-password-manager-interference

Conversation

@just1and0

@just1and0 just1and0 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The VerificationCodeInputField component used KeyboardType.NumberPassword for each digit's BasicTextField. This told Android's autofill framework the field was a password input, causing the password manager to capture an MFA code digit instead of the user's actual account password.
  • Changed to KeyboardType.Number which continues requesting a numeric keyboard without triggering password-manager save behavior.

Fixes #2405

Test plan

  • Enter email/password on the sign-in screen, then proceed to MFA code entry
  • Complete the 6-digit MFA code — verify the password manager does not prompt to save/update with a single digit
  • Verify the numeric keyboard still appears when each digit field is focused
  • Verify the TOTP enrollment flow (VerifyTotpUI) is unaffected (it already uses KeyboardType.Number)
  • Verify phone number verification code entry still works correctly (EnterVerificationCodeUI shares VerificationCodeInputField)

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the SingleDigitField component in VerificationCodeInputField.kt by changing the keyboard type from NumberPassword to Number and disabling auto-correct. There are no review comments, and I have no feedback to provide.

@demolaf demolaf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, can we get a screen recording attached to the PR desc too?

…ve (#2405)

Change KeyboardType.NumberPassword to KeyboardType.Number on the
verification code BasicTextField. NumberPassword signals to Android's
autofill framework that the field contains a password, causing the
password manager to capture MFA code digits instead of the actual
account password.
autoCorrect is ignored for numeric keyboards; removing it keeps
the diff to a single meaningful change.
@just1and0
just1and0 changed the base branch from master to version-10.0.0-beta04 July 24, 2026 09:45
@just1and0
just1and0 force-pushed the fix/2405-mfa-password-manager-interference branch from 5a2b14a to fdd8280 Compare July 24, 2026 10:14

@russellwheatley russellwheatley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM - pending Ademola's screen recording.

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.

The default UI of the MFA interfers with the password manager

3 participants