Adds default value support to Password data editor setting type

This commit is contained in:
starfighter83
2011-07-26 08:09:59 -02:00
parent b7446be08a
commit ff02f5a336

View File

@@ -31,6 +31,10 @@ namespace umbraco.editorControls.SettingControls
tb.TextMode = TextBoxMode.Password;
tb.CssClass = "guiInputText guiInputStandardSize";
if (string.IsNullOrEmpty(tb.Text) && !string.IsNullOrEmpty(DefaultValue))
tb.Text = DefaultValue;
return tb;
}
}