日期:2014-05-16 浏览次数:20394 次
/// <summary>
/// 商户账号密码
/// </summary>
[DisplayName("商户账号密码")]
[DataType(DataType.Password)]
[StringLength(100, ErrorMessage = "密码长度不能小于6位", MinimumLength = 6)]
[Required]
public string Password { get; set; }
/// <summary>
/// 重复密码
/// </summary>
[DisplayName("确认密码")]
[Compare("Password", ErrorMessage = "密码必须一致")]
public string RepPassword { get; set; }
[Required]
[StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
[DataType(DataType.Password)]
[Display(Name = "Password")]
public string Password { get; set; }
[DataType(DataType.Password)]//是不是少了这个?
[Display(Name = "Confirm password")]
[Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]
public stri