Add logging
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user