I have a custom node which accepts username and password, if the user submits the details and click on node to view node info/content information then password field is displayed in clear text.
please refer to the image
Any way to hide it ?
Probably should not annoy Nick on there sorts of things - we want to keep him busy on NR development !!
Did you write the custom node or is it someone elses you are using ? They would need to adapt the node to support some form of hashing/salting etc of the password and then store that on disk - its not something NR can do for a custom node
Craig
Sorry and thanks Craig for the information
@kiran007 as @craigcurtin says, please dont tag individuals into questions.
The node needs to identify the property as a credential. Node-RED will then store it in the credentials file and not expose it in the editor.
That suggests you have a credentials property in the nodes defaults object. That is wrong. Check the docs I linked to.
it doesn't say add to defaults anywhere - it says " Add a new credentials entry to the node’s definition:" So in step 1 add them after defaults for example - not inside.