Valid for Sitecore
5.3.1
11.
Password
Prev Next |
The simple type, password stores it raw value as text:
asdjlk
Resolve the value by extracting a simple value
public static string outPassword(Sitecore.Data.Items.Item item, string sFieldName)
{
System.Text.StringBuilder builder = new System.Text.StringBuilder();
builder.Append("Password field are stored in plain text unless you process it: " + item[sFieldName]);
return builder.ToString();
}
Result:
Password field are stored in plain text unless you process it: asdjlk
Prev Next