Update RedisMembershipProvider.cs

Updated min password character count to 8.
Also dropped invalid password attempt count as; if you can't get your password in 3 tries, just reset it, its easier.
This commit is contained in:
Mitchell R 2015-07-26 14:41:09 +02:00
parent fd16d09234
commit c1d7bd808c

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; }
}
}
}