Merge branch 'pr/16' into Localisation

Conflicts:
	BuildFeed/Models/ViewModel/ChangePassword.cs
	BuildFeed/Models/ViewModel/RegistrationUser.cs
This commit is contained in:
Thomas Hounsell 2015-07-27 09:41:47 +01:00
commit 5a6d99a069
3 changed files with 10 additions and 10 deletions

View File

@ -7,17 +7,17 @@ namespace BuildFeed.Models.ViewModel
public class ChangePassword public class ChangePassword
{ {
[Required] [Required]
[MinLength(12)] [MinLength(8)]
[Display(ResourceType = typeof(Support), Name = "EnterCurrentPassword")] [Display(ResourceType = typeof(Support), Name = "EnterCurrentPassword")]
public string OldPassword { get; set; } public string OldPassword { get; set; }
[Required] [Required]
[MinLength(12)] [MinLength(8)]
[Display(ResourceType = typeof(Support), Name = "EnterNewPassword")] [Display(ResourceType = typeof(Support), Name = "EnterNewPassword")]
public string NewPassword { get; set; } public string NewPassword { get; set; }
[Required] [Required]
[MinLength(12)] [MinLength(8)]
[Display(ResourceType = typeof(Support), Name = "ConfirmNewPassword")] [Display(ResourceType = typeof(Support), Name = "ConfirmNewPassword")]
[Compare("NewPassword")] [Compare("NewPassword")]
public string ConfirmNewPassword { get; set; } public string ConfirmNewPassword { get; set; }

View File

@ -11,12 +11,12 @@ public class RegistrationUser
public string UserName { get; set; } public string UserName { get; set; }
[Required] [Required]
[MinLength(12)] [MinLength(8)]
[Display(ResourceType = typeof(Support), Name = "EnterPassword")] [Display(ResourceType = typeof(Support), Name = "EnterPassword")]
public string Password { get; set; } public string Password { get; set; }
[Required] [Required]
[MinLength(12)] [MinLength(8)]
[Display(ResourceType = typeof(Support), Name = "ConfirmPassword")] [Display(ResourceType = typeof(Support), Name = "ConfirmPassword")]
[Compare("Password")] [Compare("Password")]
public string ConfirmPassword { get; set; } public string ConfirmPassword { get; set; }

View File

@ -16,9 +16,9 @@ namespace RedisAuth
public class RedisMembershipProvider : MembershipProvider public class RedisMembershipProvider : MembershipProvider
{ {
private bool _enablePasswordReset = true; private bool _enablePasswordReset = true;
private int _maxInvalidPasswordAttempts = 5; private int _maxInvalidPasswordAttempts = 3;
private int _minRequiredNonAlphanumericCharacters = 1; private int _minRequiredNonAlphanumericCharacters = 1;
private int _minRequriedPasswordLength = 12; private int _minRequriedPasswordLength = 8;
private int _passwordAttemptWindow = 60; private int _passwordAttemptWindow = 60;
private bool _requiresUniqueEmail = true; private bool _requiresUniqueEmail = true;