I am trying to use the password field type
on some settings items to store data instead of using configs, however when reading its values in code (for example item["passwordfield"]
) we are getting "••••" instead of the actual text. In the sitecore documentation it is stated:
The Password field type stores plain text, but masks input in the Content Editor.
Sitecore does not hash or otherwise mask the provided text in the database.
However if I look in the database the value saved is still ••••
I tried with different sitecore versions, but this behavior is the same on both 9.2 and 10.1. Not sure if I am missing or doing something wrong, has anyone achieved this? Thanks for the help.