mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
Merge branch 'pr/16' into Localisation
Conflicts: BuildFeed/Models/ViewModel/ChangePassword.cs BuildFeed/Models/ViewModel/RegistrationUser.cs
This commit is contained in:
commit
5a6d99a069
@ -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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -11,12 +11,12 @@ namespace BuildFeed.Models.ViewModel
|
||||
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 @@ namespace BuildFeed.Models.ViewModel
|
||||
[Display(ResourceType = typeof(Support), Name = "EmailAddress")]
|
||||
public string EmailAddress { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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 @@ namespace RedisAuth
|
||||
public DateTime LockoutWindowStart { get; set; }
|
||||
public int LockoutWindowAttempts { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user