Пример #1
0
 protected override void OnActionExecuting(ActionExecutingContext filterContext)
 {
     moduleId = filterContext.GetPluginSymbolicName();
     if (!string.IsNullOrWhiteSpace(LCL.LEnvironment.Principal.Identity.Name) &&
         LCL.LEnvironment.Principal.Identity.Name.Length > 1)
     {
     }
     else
     {
         string loginUrl = FormsAuthentication.LoginUrl;
         filterContext.HttpContext.Response.Redirect(loginUrl, true);
     }
     base.OnActionExecuting(filterContext);
 }