Update ChangePassword.cs

Allowing for a min password of 8 characters instead of 12.
This commit is contained in:
Mitchell R 2015-07-26 14:39:15 +02:00
parent 654a5265d6
commit fd16d09234

View File

@ -10,19 +10,19 @@ namespace BuildFeed.Models.ViewModel
public class ChangePassword
{
[Required]
[MinLength(12)]
[MinLength(8)]
[DisplayName("Enter current password")]
public string OldPassword { get; set; }
[Required]
[MinLength(12)]
[MinLength(8)]
[DisplayName("Enter new password")]
public string NewPassword { get; set; }
[Required]
[MinLength(12)]
[MinLength(8)]
[DisplayName("Confirm new password")]
[Compare("NewPassword")]
public string ConfirmNewPassword { get; set; }
}
}
}