Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion WebGoatCore/Controllers/AccountController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
using System.Threading.Tasks;
using WebGoatCore.ViewModels;
using Microsoft.AspNetCore.Authorization;

using WebGoatCore.Models;

namespace WebGoatCore.Controllers
{
[Authorize]
Expand Down Expand Up @@ -68,6 +69,7 @@ public async Task<IActionResult> Login(LoginViewModel model)
public async Task<IActionResult> Logout()
{
await _signInManager.SignOutAsync();
HttpContext.Session.Set("Cart", new Cart());
return RedirectToAction("Index", "Home");
}

Expand Down