How to change default error messages of MVC Core ValidationSummary?
问题 Using MVC Core with ASP.NET Identity I would like to change the defaults error messages of ValidationSummary that arrived from Register action. Any advice will be much appreciated. 回答1: You should override methods of IdentityErrorDescriber to change identity error messages. public class YourIdentityErrorDescriber : IdentityErrorDescriber { public override IdentityError PasswordRequiresUpper() { return new IdentityError { Code = nameof(PasswordRequiresUpper), Description = "<your error message