First question is, using StringLength, is it possible to specify only a minimum length? More importantly, this is what I have for a password.
private string password;
[Required]
[DataType(DataType.Password)]
[StringLength(15, MinimumLength = 6)]
public string Password { get { return password; } set { HashPassword(value); } }
What I want is when the user enters the password that they can only enter a minimum of 6 and maximum of 15 characters for their password. The issue lies in my Controller because ModelState.IsValid fails due to the hashing generating a huge string exceeding 15 characters. How can I get around this?