Fix for http://orchard.codeplex.com/workitem/17112. The Get Started, Register Account and Add User had different min lengths for password.

In looking at the membershipSettings class in Orchard the min length setting is 7.  I changed the add user (UserCreateViewModel) and the get
started (SetupViewModel) to match the min of 7 by modifying/adding a data annotation.

--HG--
branch : 1.x
This commit is contained in:
Kevin LaBranche
2011-01-17 14:31:33 -07:00
parent dc81f4c8a6
commit 956fcd8e56
2 changed files with 2 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ namespace Orchard.Setup.ViewModels {
public string SiteName { get; set; }
[UserNameValid(minimumLength: 3, maximumLength: 25)]
public string AdminUsername { get; set; }
[PasswordValid(minimumLength: 6, maximumLength: 50)]
[PasswordValid(minimumLength: 7, maximumLength: 50)]
public string AdminPassword { get; set; }
[PasswordConfirmationRequired]
public string ConfirmPassword { get; set; }

View File

@@ -10,6 +10,7 @@ namespace Orchard.Users.ViewModels {
public string Email { get; set; }
[Required, DataType(DataType.Password)]
[StringLength(50, MinimumLength = 7)]
public string Password { get; set; }
[Required, DataType(DataType.Password)]