I tried to locate this question in the forum and could not find it. I have an MVC Asp Net application that uses to login the Entity Framework with Identity. My client registration works perfectly, but I am not able to validate two fields: Username and Login. I tried to locate where they are called, but from what I read on the net so far, it gets "encapsulated" and I could not place the validations on them. I would like to put a validation like this on them:
[Required]
[StringLength(10, MinimumLength = 6)]
public string Senha { get; set; }
The problem is that I am not able to find Username and Login. I could not find the AccountViewModels.cs that indicated me on the net. Can someone help me please? I would like to validate the Username and Login fields so that it is not possible to save the registration with them blank, as I did not find their location, I can not validate and the easiest way I found was as I reported in the code above. >