2
To authenticate in my system I am using the attribute [Authorize]
I put this code down on Web.Config for when the Code 401 which is related to not authenticating it redirects itself to my login page.
<customErrors defaultRedirect="GenericError.html" mode="RemoteOnly">
<error statusCode="401" redirect="Login/Login"/>
But it is not redirecting or generating error.
In fact, if the page returns a 401, it should redirect without needing to. You are using ASP.NET Identity?
– Leonel Sanches da Silva
Thanks for the Suggestion, I used the way below.
– user31040