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) {
// ...
}
}
Can you answer this question?
Answer
0 Answers