This commit is contained in:
Zel
2025-02-25 23:06:02 +08:00
parent 8b415588bc
commit f8519c41bf
23 changed files with 161 additions and 140 deletions

View File

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