1111111
This commit is contained in:
@@ -7,14 +7,14 @@ namespace ZelWiki.Models.ViewModels.Shared
|
||||
public const string NOTSET = "\\__!!_PASSWORD_NOT_SET_!!__//";
|
||||
|
||||
[Required]
|
||||
[Display(Name = "Password")]
|
||||
[StringLength(50, MinimumLength = 6, ErrorMessage = "Must have a minimum length of 5.")]
|
||||
[Display(Name = "密码")]
|
||||
[StringLength(50, MinimumLength = 6, ErrorMessage = "密码必须大于6位")]
|
||||
public string Password { get; set; } = NOTSET;
|
||||
|
||||
[Required]
|
||||
[Display(Name = "Re-enter Password")]
|
||||
[StringLength(50, MinimumLength = 6, ErrorMessage = "Must have a minimum length of 5.")]
|
||||
[Compare("Password", ErrorMessage = "The two entered passwords do not match.")]
|
||||
[Display(Name = "再次输入密码")]
|
||||
[StringLength(50, MinimumLength = 6, ErrorMessage = "密码必须大于6位")]
|
||||
[Compare("Password", ErrorMessage = "两次密码输入不一致")]
|
||||
public string ComparePassword { get; set; } = NOTSET;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user