Add sensitive prop to field schema definition. Setting this prop to true should make inputs of type String mask the value to prevent leaking (eg. via screenshots or screenshare). The value is unmasked when user focuses the input to allow for easy editing / copying.
Resolves #1674, hopefully
Screenshots
N/A, didn't test
Additional information
Did not test the change, please test it before merging. Especially the masking / unmasking part. I believe browsers emit focus and blur in all scenarios.
Checklist
[x] My pull request is not a duplicate
[x] I added a descriptive title to this pull request
[ ] I added a concise description or a self-explanatory screenshot to this pull request
[x] My code follows the code style of this project
Description
Add
sensitive
prop to field schema definition. Setting this prop totrue
should make inputs of typeString
mask the value to prevent leaking (eg. via screenshots or screenshare). The value is unmasked when user focuses the input to allow for easy editing / copying.Resolves #1674, hopefully
Screenshots
N/A, didn't test
Additional information
Did not test the change, please test it before merging. Especially the masking / unmasking part. I believe browsers emit
focus
andblur
in all scenarios.Checklist