Add logging

This commit is contained in:
2016-09-14 09:55:59 -04:00
parent 052f812d6f
commit 521ceda710
10 changed files with 57 additions and 17 deletions
@@ -1,5 +1,6 @@
using System.Threading.Tasks;
using System.Web.Mvc;
using InventoryTraker.Web.Attributes;
using InventoryTraker.Web.Identity;
using InventoryTraker.Web.Models;
using Microsoft.AspNet.Identity;
@@ -26,6 +27,7 @@ namespace InventoryTraker.Web.Controllers
}
[HttpPost]
[ActionLog]
public async Task<ActionResult> Login(LoginForm form)
{
var user = await _userManager.FindByEmailAsync(form.EmailAddress);
@@ -43,6 +45,7 @@ namespace InventoryTraker.Web.Controllers
return Json(true);
}
[ActionLog]
public ActionResult Logout()
{
_authManager.SignOut();