From c5506fc9f9efcf960cced980230d6c038b226f1a Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 13 Apr 2017 09:54:37 -0400 Subject: Move email IP to audit summary --- Project-Unite/App_Start/IdentityConfig.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Project-Unite/App_Start') diff --git a/Project-Unite/App_Start/IdentityConfig.cs b/Project-Unite/App_Start/IdentityConfig.cs index 30d7211..a317e22 100644 --- a/Project-Unite/App_Start/IdentityConfig.cs +++ b/Project-Unite/App_Start/IdentityConfig.cs @@ -41,7 +41,7 @@ namespace Project_Unite sMsg.IsBodyHtml = true; smtp.DeliveryMethod = SmtpDeliveryMethod.Network; var db = new ApplicationDbContext(); - db.AuditLogs.Add(new AuditLog("system", AuditLogLevel.Admin, $"Email sending...

To: {sMsg.To}
Subject:
{sMsg.Subject}")); + db.AuditLogs.Add(new AuditLog("system", AuditLogLevel.Admin, $"Email sending...

To: {sMsg.To}
Subject:
{sMsg.Subject}
Invoker IP:{HttpContext.Current.Request.UserHostAddress}")); db.SaveChanges(); smtp.SendCompleted += async (o, a) => { -- cgit v1.2.3