diff Agendas/trunk/src/Agendas.Web/HttpContextIdentityProvider.cs @ 50:3ebe89c88caa

Agregando propiedad al Evento sobre el Usuario que lo crea o que realizó la última modificación.
author nelopauselli
date Fri, 13 May 2011 23:29:05 -0300
parents 475be11edf56
children
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Web/HttpContextIdentityProvider.cs	Fri May 13 22:59:00 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web/HttpContextIdentityProvider.cs	Fri May 13 23:29:05 2011 -0300
@@ -1,14 +1,13 @@
-using System.Security.Principal;
-using System.Web;
+using System.Web;
 using AltNetHispano.Agendas.Domain;
 
 namespace AltNetHispano.Agendas.Web
 {
 	public class HttpContextIdentityProvider : ISeguridad
 	{
-		public IPrincipal GetPrincipal()
+		public string GetUserName()
 		{
-			return HttpContext.Current.User;
+			return HttpContext.Current.User.Identity.Name;
 		}
 	}
 }
\ No newline at end of file