Add logout feature

This commit is contained in:
Luke Else 2022-02-07 20:58:32 +00:00
parent 0cf2360576
commit 6887d33fe2

View File

@ -89,6 +89,11 @@ namespace EFB.Controllers
}
public IActionResult Logout(){
HttpContext.Session.SetObject("User", null);
return RedirectToAction("Index", "Home");
}
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public IActionResult Error()
{