Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add password input field that requires user authentication for unmasking #7227

Merged
merged 3 commits into from
Oct 12, 2023

Conversation

cketti
Copy link
Member

@cketti cketti commented Oct 9, 2023

Adds a compose variant of the password input field that only reveals its contents after the user has authenticated.

While this feature requires quite a bit of logic, it feels wrong to burden users of the password input component with implementing it. So I included the code in TextFieldOutlinedPasswordBiometric (and to a minor degree in BiometricPasswordInput).

I'm not sure about the name(s) of the components and the name of the Gradle module. Suggestions on how to name and structure this differently are welcome.

Copy link
Member

@wmontwe wmontwe left a comment

Choose a reason for hiding this comment

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

👍

Variant of `PasswordInput` that only allows the password to be unmasked after the user has authenticated using `BiometricPrompt`.
@cketti cketti force-pushed the textfield_reveal_authentication branch from 4414e1e to 6dbb94b Compare October 12, 2023 10:29
@cketti cketti merged commit 61b76c3 into main Oct 12, 2023
2 checks passed
@cketti cketti deleted the textfield_reveal_authentication branch October 12, 2023 11:08
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.

2 participants