I want to disable authorization in one action. I have added authorize attribute at the controller level
[Authorize]
public class HomeController : Controller
{
public ActionResult Register()
{
return View();
}
public ActionResult Login()
{
return View();
}
}
thanks in advance..
Anonymous User
14-Mar-2018You have to use [AllowAnonymous] attribute