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

View File

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

View File

@ -16,9 +16,9 @@ namespace RedisAuth
public class RedisMembershipProvider : MembershipProvider
{
private bool _enablePasswordReset = true;
private int _maxInvalidPasswordAttempts = 5;
private int _maxInvalidPasswordAttempts = 3;
private int _minRequiredNonAlphanumericCharacters = 1;
private int _minRequriedPasswordLength = 12;
private int _minRequriedPasswordLength = 8;
private int _passwordAttemptWindow = 60;
private bool _requiresUniqueEmail = true;
@ -491,4 +491,4 @@ public class RedisMember : IHasId<Guid>
public DateTime LockoutWindowStart { get; set; }
public int LockoutWindowAttempts { get; set; }
}
}
}