Add logout feature
This commit is contained in:
parent
0cf2360576
commit
6887d33fe2
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user