mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
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:
@@ -10,7 +10,7 @@ namespace Orchard.Setup.ViewModels {
|
|||||||
public string SiteName { get; set; }
|
public string SiteName { get; set; }
|
||||||
[UserNameValid(minimumLength: 3, maximumLength: 25)]
|
[UserNameValid(minimumLength: 3, maximumLength: 25)]
|
||||||
public string AdminUsername { get; set; }
|
public string AdminUsername { get; set; }
|
||||||
[PasswordValid(minimumLength: 6, maximumLength: 50)]
|
[PasswordValid(minimumLength: 7, maximumLength: 50)]
|
||||||
public string AdminPassword { get; set; }
|
public string AdminPassword { get; set; }
|
||||||
[PasswordConfirmationRequired]
|
[PasswordConfirmationRequired]
|
||||||
public string ConfirmPassword { get; set; }
|
public string ConfirmPassword { get; set; }
|
||||||
|
@@ -10,6 +10,7 @@ namespace Orchard.Users.ViewModels {
|
|||||||
public string Email { get; set; }
|
public string Email { get; set; }
|
||||||
|
|
||||||
[Required, DataType(DataType.Password)]
|
[Required, DataType(DataType.Password)]
|
||||||
|
[StringLength(50, MinimumLength = 7)]
|
||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
|
|
||||||
[Required, DataType(DataType.Password)]
|
[Required, DataType(DataType.Password)]
|
||||||
|
Reference in New Issue
Block a user