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

UI: Masked inputs always look the same when value is hidden #15025

Merged
merged 3 commits into from
Apr 13, 2022

Conversation

hashishaw
Copy link
Collaborator

Previous to this fix, if a masked value had special characters such as é, à, è the masked value would give away where chose characters are in the string.

After this fix, masked display will be completely agnostic to the actual value -- always showing the same length and size of character. This PR addresses issue 13270

Before - you can tell without showing the value where the special character is
masked value display - before

After - can no longer tell when masked the length or location of special characters
masked value display - after
masked value show - after

It's worth noting that the input will still show the true length and location of the special character. This is so that the user can type in the field without unmasking the value.
masked value input - after

@hashishaw hashishaw added ui bug Used to indicate a potential bug backport/1.9.x labels Apr 13, 2022
@vercel vercel bot temporarily deployed to Preview – vault April 13, 2022 20:27 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook April 13, 2022 20:27 Inactive
Copy link
Contributor

@zofskeez zofskeez left a comment

Choose a reason for hiding this comment

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

Nice update! Thanks for this.

@vercel vercel bot temporarily deployed to Preview – vault April 13, 2022 21:06 Inactive
@hashishaw hashishaw merged commit 48e95a3 into main Apr 13, 2022
@hashishaw hashishaw deleted the ui/fix-obfuscated-string-reveal-details branch April 13, 2022 21:56
hashishaw added a commit that referenced this pull request Apr 13, 2022
* Masked inputs always look the same when value is hidden

* Add changelog

* Fix failing test
hashishaw added a commit that referenced this pull request Apr 13, 2022
* Masked inputs always look the same when value is hidden

* Add changelog

* Fix failing test
hashishaw added a commit that referenced this pull request Apr 13, 2022
* Masked inputs always look the same when value is hidden

* Add changelog

* Fix failing test
hashishaw added a commit that referenced this pull request Apr 14, 2022
…15034)

* Masked inputs always look the same when value is hidden

* Add changelog

* Fix failing test
hashishaw added a commit that referenced this pull request Apr 14, 2022
…idden (#15025) (#15033)

* UI: Masked inputs always look the same when value is hidden (#15025)

* Masked inputs always look the same when value is hidden

* Add changelog

* Fix failing test

* Fix bad fix
hashishaw added a commit that referenced this pull request Apr 15, 2022
…hidden (#15025) (#15032)

* UI: Masked inputs always look the same when value is hidden (#15025)

* Masked inputs always look the same when value is hidden

* Add changelog

* Fix failing test

* Fix linting

* please unflake
kitography pushed a commit that referenced this pull request Apr 24, 2022
* Masked inputs always look the same when value is hidden

* Add changelog

* Fix failing test
schultz-is pushed a commit that referenced this pull request Apr 27, 2022
* Masked inputs always look the same when value is hidden

* Add changelog

* Fix failing test
schultz-is pushed a commit that referenced this pull request May 2, 2022
* Masked inputs always look the same when value is hidden

* Add changelog

* Fix failing test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Obfuscated password values in WebUI shows if a password contains certain characters
2 participants