Q:

.Net Identity 2 custom validation text

How can i write custom text for 'password minimumlength' and 'username exist' error text ?
UserManager.PasswordValidator = new MinimumLengthValidator(4);

I am getting "Passwords must be at least 6 characters." error although i set minimumlength to 4 and change error message.
it must be local language as i have written.
I tried this aspect but not work.
[StringLength(100, ErrorMessage = "Şifreniz en az 4 karakter olmalıdır.", MinimumLength = 4)]

here is my model property for password
[Required(ErrorMessage = "Şifre girmediniz")]
[StringLength(100, ErrorMessage = "Şifreniz en az 4 karakter olmalıdır.", MinimumLength = 4)]
[DataType(DataType.Password)]
[Display(Name = "Şifre")]
public string Password { get; set; }

A:

Probably due to Membership Provider constraint. 
Please see this link also this answer

