Updates how the validation works in the member model mapper to use the native validation stuff instead of custom pre-values.

This commit is contained in:
Shannon
2014-11-18 14:32:51 +11:00
parent ce80c9a244
commit 1accc6275a
4 changed files with 10 additions and 8 deletions

View File

@@ -187,7 +187,7 @@ namespace Umbraco.Web.Models.Mapping
Label = ui.Text("general", "email"),
Value = display.Email,
View = "email",
Config = new Dictionary<string, object> { { "IsRequired", true } }
Validation = { Mandatory = true }
},
new ContentPropertyDisplay
{
@@ -259,7 +259,7 @@ namespace Umbraco.Web.Models.Mapping
if (member.HasIdentity == false || scenario == MembershipScenario.NativeUmbraco)
{
prop.View = "textbox";
prop.Config = new Dictionary<string, object> {{"IsRequired", true}};
prop.Validation.Mandatory = true;
}
else
{