http://localhost:54673/Account/logOFF
we can achieve this by removing [httpPost] and [ValidateAntiForgeryToken]
This is the default controller
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult LogOff()
{
WebSecurity.Logout();
return View("Index");
}
public ActionResult LogOff()
{
WebSecurity.Logout();
return View("Index");
}
No comments:
Post a Comment