Password is visible when inspecting the element
See original GitHub issueIf I add this code to my form
<Field name="password" component={renderField} type="password" className="modal--txt-field" />
and after that I inspect the element, I’ll be able to see the inserted password. This is dangerous specially for those cases you save form credentials on your browser.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:15 (1 by maintainers)
Top Results From Across the Web
how to hide password in inspect or DOM elements
Password is showing in different places like network preserve log, inspect elements. Hi Tulasi Ram, View source is a representation of static ...
Read more >View Hidden Passwords Behind Asterisks in Chrome and ...
Open any website where you have your password saved, right-click on the password field and go to Inspect Element.
Read more >Hiding password field value from inspect element?
The value property of an input field is going to be visible through the inspect element option of the dev tools.
Read more >Google Chrome Inspect: How To Reveal Hidden Passwords
passwords #google #chromeGoogle Chrome Browser: Developer Tools Inspect Element : Show Hidden PasswordsThis tutorial will teach you how to ...
Read more >How To View A Password Behind The Asterisks In a Browser
Reveal Passwords Behind Asterisks Using Inspect Element · Launch the website where you want to reveal the passwords behind asterisks. · Right- ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
to @dtipson’s point…
Don’t set the “value” prop. This makes it an uncontrolled component. You can still listen to the onChange to track the value. If you need to clear the value (without getting React controller/uncontroller warning) I guess you can just change the “key” prop on the input to force rerender, which should clear the field.
Hope this helps 😃