Tôi không chắc chắn những gì tôi đang thiếu nhưng tôi thực sự không có thể tham khảo User.Identity
dưới OnActionExecuting(ActionExecutingContext filterContext)
Không thể truy cập để User.Identity dưới OnActionExecuting (ActionExecutingContext filterContext)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
using System.Web.Routing;
.....
public class RealUserAttribute : ActionFilterAttribute
{
public override void OnActionExecuting(ActionExecutingContext filterContext)
{
/// if (User.Identity.IsAuthenticated)
Bất kỳ đầu mối làm thế nào để sửa chữa nó?