accessing controller action

Total Post:4

Points:28
 452  View(s)
Ratings:
Rate this:

I have a controller and action as shown below. how can i make login action as public means all can access login page


[Authorize]
public class AccountController : Controller {

  public ActionResult Login() {
    // ...
  }


  [HttpPost]
  public JsonResult JsonLogin(LoginModel model, string returnUrl) {
    // ...
  }
}

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!